public function actionIndex() { $model = new Support('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Support'])) { $model->attributes = $_GET['Support']; $model->group_support_id = $_GET['Support']['group_support_id']; } $this->render('index', array('model' => $model)); }
/** * Manages all models. */ public function actionAdmin() { $model = new Support('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Support'])) { $model->attributes = $_GET['Support']; } $this->render('admin', array('model' => $model)); }