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