public function actionIndex() { $user = $this->newUser(); $model = new sUser('search'); $model->unsetAttributes(); if (isset($_GET['sUser'])) { $model->attributes = $_GET['sUser']; } $this->render('index', array('model' => $model, 'modeluser' => $user)); }