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