Exemplo n.º 1
0
 public function actionAdmin()
 {
     $model = new Test('search');
     $model->unsetAttributes();
     if (isset($_GET['Test'])) {
         $model->setAttributes($_GET['Test']);
     }
     $this->render('admin', array('model' => $model));
 }
Exemplo n.º 2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Test('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Test'])) {
         $model->attributes = $_GET['Test'];
     }
     $this->render('admin', array('model' => $model));
 }