public function actionIndex($type = null) { $parameter = $this->newParameter($type); $model = new sParameter('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['sParameter'])) { $model->attributes = $_GET['sParameter']; } $this->render('index', array('model' => $model, 'type' => $type, 'modelParameter' => $parameter)); }