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