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