'yyyyMMdd', 'type'=>'date', 'message'=>'{attribute}格式错误!'), ); } public function attributeLabels(){ return array( 'beginDate' => '起始时间 ', 'endDate' => '截止时间', ); } }