public function rules() { // NOTE: you should only define rules for those attributes that // will receive user inputs. return array(array('eye_id', 'checkComplicationEyePanels'), array('id, event_id, eye_id', 'safe', 'on' => 'search')); }