摘要:
在model中定义public function rules(){ return array( array('Name,Email','required'), array('Email','unique','message'=>'{value... 阅读全文
摘要:
array(array(‘username’, ‘required’), array(‘username’, ‘length’, ‘min’=>3, ‘max’=>12), array(‘password’, ‘compare’, ‘compareAttribute’=>’password2′, ‘... 阅读全文