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