Esempio n. 1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $this->layout = '//layouts/blank';
     $model = new Channel('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Channel'])) {
         $model->attributes = $_GET['Channel'];
     }
     $this->render('admin', array('model' => $model));
 }
Esempio n. 2
0
 /**
  * Manages all models.
  */
 public function actionChannel()
 {
     $model = new Channel('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Channel'])) {
         $model->attributes = $_GET['Channel'];
     }
     $this->render('channel', array('model' => $model));
 }