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