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