public function actionAdv() { // renders the view file 'protected/views/site/index.php' // using the default layout 'protected/views/layouts/main.php' $model = new Notices('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Notices'])) { $model->attributes = $_GET['Notices']; } $this->render('adv', array('model' => $model)); }
/** * Manages all models. */ public function actionAdmin() { $model = new Notices('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Notices'])) { $model->attributes = $_GET['Notices']; } $this->render('admin', array('model' => $model)); }