コード例 #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));
 }
コード例 #2
0
ファイル: TestController.php プロジェクト: anmolview/yiidemos
 /**
  * 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));
 }