Esempio n. 1
0
 public function actionAdmin()
 {
     $model = new D2files('search');
     $scopes = $model->scopes();
     if (isset($scopes[$this->scope])) {
         $model->{$this->scope}();
     }
     $model->unsetAttributes();
     if (isset($_GET['D2files'])) {
         $model->attributes = $_GET['D2files'];
     }
     $this->render('admin', array('model' => $model));
 }