public function actionExport() { $model = new Inexpense(); $model->unsetAttributes(); // clear any default values if (isset($_POST['Inexpense'])) { $model->attributes = $_POST['Inexpense']; } $exportType = $_POST['fileType']; $this->widget('ext.heart.export.EHeartExport', array('title' => 'List of Inexpense', 'dataProvider' => $model->search(), 'filter' => $model, 'grid_mode' => 'export', 'exportType' => $exportType, 'columns' => array('inexpense_id', 'inexp_date', 'department_id'))); }