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