JUser
From Joomla! Documentation
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)