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