Hello, I want to create a registration script and first of all I have created RegisterForm.php and after it I wanted to generate a form from Gii but Gii just shows me a blank page, nothing on it. so I thought that something should be wrong in RegisterForm.php <-model. here is a code:
<?php
class RegisterForm extends CFormModel
{
public $username;
public $password;
public $password2;
public $email;
public $fullname;
public $birth;
public function rules()
{
return array(
array('username, password, password2, email, fullname, birth', 'required'),
array('username','length','min'=>3),
array('username','length','max'=>16),
array('username', 'filter', 'filter'=>'strtolower')
array('username', 'ext.alpha', 'allowSpaces'=>'flase', 'allAccentedLetters'=>'false', 'allowEmpty' => 'false'),
array('username', 'unique', 'attributeName'=> 'username', 'caseSensitive' => 'false'),
array('password', 'length', 'min' =>6),
array('password', 'length', 'max' =>32),
array('password', 'compare', 'allowEmpty' => 'false', 'compareAttribute' => 'password2', 'strict' => 'true'),
array('email', 'length', 'min' =><img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='8)' />,
array('email', 'length', 'max' =>128),
array('email', 'email'),
array('fullname','length','min'=>6),
array('fullname','length','max'=>64),
array('fullname', 'ext.alpha', 'allowNumbers'=>'false', 'allAccentedLetters'=>'false'),
array('birth', 'date', 'allowEmpty'=>'false', 'format'=>'dd/MM/yyyy'),
);
}
}