摘要: 在model中定义public function rules(){ return array( array('Name,Email','required'), array('Email','unique','message'=>'{value... 阅读全文
posted @ 2014-08-12 17:08 |小赵同学| 阅读(1572) 评论(0) 推荐(0) 编辑
摘要: array(array(‘username’, ‘required’), array(‘username’, ‘length’, ‘min’=>3, ‘max’=>12), array(‘password’, ‘compare’, ‘compareAttribute’=>’password2′, ‘... 阅读全文
posted @ 2014-08-12 15:53 |小赵同学| 阅读(281) 评论(0) 推荐(0) 编辑