예제 #1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Host('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Host'])) {
         $model->attributes = $_GET['Host'];
     }
     $this->render('admin', array('model' => $model));
 }
예제 #2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Host('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['pageSize'])) {
         Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']);
         unset($_GET['pageSize']);
         // would interfere with pager and repetitive page size change
     }
     if (isset($_GET['Host'])) {
         $model->attributes = $_GET['Host'];
     }
     $this->render('admin', array('model' => $model));
 }