/** * Lists all models. */ public function actionIndex() { parent::actionIndex(); $this->lookupdata(); $model = new Hospital('searchwstatus'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Hospital'])) { $model->attributes = $_GET['Hospital']; } 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, 'hospitaladdress' => $this->hospitaladdress, 'hospitalcontact' => $this->hospitalcontact, 'accpiutang' => $this->accpiutang)); }