/** * 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)); }
/** * 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)); }