/**
  * Manages all models.
  */
 public function actionAdmin()
 {
     IsAuth::Admin();
     $model = new Province('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Province'])) {
         $model->attributes = $_GET['Province'];
     }
     $this->render('admin', array('model' => $model));
 }
 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     parent::actionIndex();
     $this->lookupdata();
     $model = new Province('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Province'])) {
         $model->attributes = $_GET['Province'];
     }
     if (isset($_GET['pageSize'])) {
         Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']);
         unset($_GET['pageSize']);
         // would interfere with pager and repetitive page size change
     }
     $this->render('index', array('model' => $model, 'country' => $this->country));
 }
 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     $this->title = 'Daftar Provinsi';
     $model = new Province('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Province'])) {
         $model->attributes = $_GET['Province'];
     }
     $this->render('index', array('model' => $model));
 }