예제 #1
0
 public function actionIndex()
 {
     $this->layout = '//layouts/admin';
     $this->pageTitle = 'Справочники';
     $this->breadcrumbs = array('Справочники');
     $model = new Lists('search');
     $model->unsetAttributes();
     if (isset($_GET['Lists'])) {
         $model->attributes = $_GET['Lists'];
     }
     $this->render('index', array('model' => $model));
 }
예제 #2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Lists('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Lists'])) {
         $model->attributes = $_GET['Lists'];
     }
     $this->render('admin', array('model' => $model));
 }