/** * Retrieves a list of models based on the current search/filter conditions. * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions. */ public function search($catPk) { return parent::search($catPk, array('title', 'index_text', 'sidebar_text')); }
/** * Retrieves a list of models based on the current search/filter conditions. * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions. */ public function search($portfolioPk) { return parent::search(array('name', 'descr'), 'portfolio_id='.$portfolioPk); }