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