Exemplo n.º 1
0
 public function actionAdmin($id)
 {
     $model = new Statistic('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Statistic'])) {
         $model->attributes = $_GET['Statistic'];
     }
     $model->file_id = $id;
     $this->render('admin', array('model' => $model));
 }