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