public function rules() { // NOTE: you should only define rules for those attributes that // will receive user inputs. return array(array('name, display_order', 'safe')); }