Skip to content

Instantly share code, notes, and snippets.

@steveu
Created May 5, 2011 20:53
Show Gist options
  • Save steveu/957906 to your computer and use it in GitHub Desktop.
Save steveu/957906 to your computer and use it in GitHub Desktop.
$config = array(
'title' => 'Setup your account',
'buttonTitle' => 'Register',
'redirect' => '/thanks/',
'showShortErrors' => false,
'showLongErrors' => true,
'fieldsets' => array(
'example' => array(
'legend' => false,
'fields' => array(
'name' => array(
'type'=>'text', 'label'=>'Full Name', 'req'=>true,
),
'email' => array(
'type'=>'text', 'label'=>'Email Address', 'req'=>true,
'regex'=>'email', 'initial'=>'must be valid',
),
'username' => array(
'type'=>'text', 'label'=>'Username', 'req'=>true,
'hint'=>'3-20 characters',
'min'=>3, 'max'=>20,
'class'=>'small',
'unique' => array(
'table' => 'users',
'field' => 'username',
'match' => array(
'active' => 'Y',
),
),
),
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment