Originally Posted by tabula
PHP Code:$validate = new validate;
if(!$validate->is_username($_REQUEST['f_username']))
{
$errors[] = 'Invalid username format';
}
etc...
It makes it really easy to create and edit users. My user class is a hybrid DAO/utility/display class, but it works very well for me. For example I can load, edit, and save a user record in just a few lines of code.Originally Posted by tabula
PHP Code:if($user->load('tabula'))
{
$user->set('username', 'billgates');
if($user->save())
{
$gui->dialog('You are now a very rich man!', '/index.php');
}
else
{
$gui->error($user->errors, 'index.php');
}
}




) well sure at that time people really didn't see the advantage except the editor reviewer at jars.com there is really some strong inertia in software engineering to adopt novel ideas 



Bookmarks