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