/** * Lists all models. */ public function actionIndex() { $this->title = 'Daftar DIPA/POK'; //Check completeness of all master data $showContent = $this->checkMaster(); $errors = ErrorDipa::model()->findAll(); $errorCompleteness = ErrorDipaCompleteness::model()->findAll(); //Search data content to show $model = new Dipa('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Dipa'])) { $model->attributes = $_GET['Dipa']; } $this->render('index', array('model' => $model, 'showContent' => $showContent, 'errors' => $errors, 'errorCompleteness' => $errorCompleteness)); }