摘要:
$form = $this->beginWidget('CActiveForm',array('id' => 'userRegisterForm'));echo $form->label($user_model , 'username');//如果username字段在rules规则中设为必须的话,... 阅读全文
摘要:
/验证规则详细配置 public function rules() { // NOTE: you should only define rules for those attributes that // will receive user inputs. ... 阅读全文