Retrieves a list of models based on the current search/filter conditions.
public search ( ) : CActiveDataProvider | ||
return | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
public function actionExport() { $model = new Menu(); $model->unsetAttributes(); // clear any default values if (isset($_POST['Menu'])) { $model->attributes = $_POST['Menu']; } $exportType = $_POST['fileType']; $this->widget('ext.heart.export.EHeartExport', array('title' => 'List of Menu', 'dataProvider' => $model->search(), 'filter' => $model, 'grid_mode' => 'export', 'exportType' => $exportType, 'columns' => array('menu_id', 'just_id', 'type'))); }