CreateUser probelm
|
Arturo Hernández
Joined: 2009-08-16
Posts: 3 |
Posted: Sun, 2009-08-16 13:28
|
|
Hi, Im new with this and i have several problems with the createuser function, i hope anyone can help me. Class GalleryComponent extends Object{ function startup(&$controller) $ret = GalleryEmbed::init(array('fullInit' => true)); function SetUser($extUserId, $parametros){ this function call the gallery component function _SetUser($id){ $Options =array('username' => $User['Inquilino']['Email'], and this call the _SetUser function function Activar($id){ } Idont have errors and all seams work well but the class dont create any users. Tks for the time. |
|
| Login or register to post comments |

Posts: 3
I didt!!!
this is my new GalleryComponent
function startup(&$controller)
{
require_once('/var/www/galeria/embed.php');
$ret = GalleryEmbed::init( array ('g2Uri'=>'http://localhost/galeria/main.php', 'embedUri'=>$URLembebed, 'fullInit'=>'false'));
if ($ret) {
print 'G2 init error: '.$ret->getAsHtml();
}
function SetUser($extUserId, $parametros){
$g2data = GalleryEmbed::handleRequest();
if ($g2data['isDone']) {
exit;
}
$ret = GalleryEmbed::createUser($extUserId, $parametros);
if ($ret) {
print "An error occurred during the on-the-fly user creation <br>";
print $ret->getAsHtml();
exit;
}
GalleryEmbed::done();
}
Posts: 3
i found the answer here http://www.flashyourweb.com/