/** * Управление товарами. */ public function actionIndex() { $model = new Good('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Good'])) { $model->attributes = $_GET['Good']; } $this->render('index', array('model' => $model)); }