/** * Displays a particular model. * @param integer $id the ID of the model to be displayed */ public function actionView($id) { $detail = new DJadwal('search'); $detail->unsetAttributes(); // clear any default values if (isset($_GET['DJadwal'])) { $daftarhadir->attributes = $_GET['DJadwal']; } $model = $this->loadModel($id); $this->render('view', array('model' => $model, 'detail' => $detail->searchByIDJadwal($model->ID))); }
/** * Manages all models. */ public function actionAdmin() { $model = new DJadwal('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['DJadwal'])) { $model->attributes = $_GET['DJadwal']; } $this->render('admin', array('model' => $model)); }