예제 #1
0
 public function actionExport()
 {
     $model = new Halfstaff();
     $model->unsetAttributes();
     // clear any default values
     if (isset($_POST['Halfstaff'])) {
         $model->attributes = $_POST['Halfstaff'];
     }
     $exportType = $_POST['fileType'];
     $this->widget('ext.heart.export.EHeartExport', array('title' => 'List of Halfstaff', 'dataProvider' => $model->search(), 'filter' => $model, 'grid_mode' => 'export', 'exportType' => $exportType, 'columns' => array('halfstuff_id', 'name', 'stuff_type')));
 }