public function actionIndex() { $module = $this->newModule(); $model = new SModule('search'); $model->unsetAttributes(); if (isset($_GET['SModule'])) { $model->attributes = $_GET['SModule']; } $this->render('index', array('model' => $model, 'modelmodule' => $module)); }