/**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new File('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['File'])) {
         $model->attributes = $_GET['File'];
     }
     $this->render('admin', array('model' => $model));
 }
Example #2
0
 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     $model = new File('search');
     $model->unsetAttributes();
     if (isset($_GET['File'])) {
         $model->attributes = $_GET['File'];
     }
     $this->render('admin', array('model' => $model));
 }