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