Пример #1
0
 public function actionAdmin()
 {
     IsAuth::Admin();
     $model = new Manufacturer('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Manufacturer'])) {
         $model->attributes = $_GET['Manufacturer'];
     }
     $this->render('admin', array('model' => $model));
 }
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Manufacturer('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Manufacturer'])) {
         $model->attributes = $_GET['Manufacturer'];
     }
     if ($this->isExportRequest()) {
         $this->exportCSV($model->search(), array('name', 'add1', 'add2', 'emailid', 'mobile', 'pan', 'tin'));
     }
     $this->render('admin', array('model' => $model));
 }