/验证规则详细配置 public function rules() { // NOTE: you should only define rules for those attributes that // will receive user inputs. return array( array('username', 'required' ,'message'=>'用户名必须填写'), // array('username', 'required' ,'requiredValue'=>'ab…