public function actionTodos() { $session = new CHttpSession(); $session->open(); $model = new Mensaje('search'); $model->unsetAttributes(); if (isset($_GET['Mensaje'])) { $model->setAttributes($_GET['Mensaje']); } $session['Mensaje_model_search'] = $model; $this->render('todos', array('model' => $model)); }