JUser

From Joomla! Documentation
Revision as of 06:20, 2 April 2008 by E-builds (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This creates a fresh user and save it in the DB. (It also makes a row for it in acl!)

$NU = new JUser();
$NU->name = $P['firstname'].' '.$P['lastname'];
$NU->username = $P['username'];
$NU->email = $P['email'];
if (!$NU->save(false))  {       MRender('Error: User not saved!!<br/>'.$NU->getError());return;         }
else $MR[]='Uw contact informatie is in onze database opgeslaan.';

MRender is a custom system message Renderer without queue (like JRenderer)

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox