public function actionAdmin() { $model = new Producto('search'); $model->unsetAttributes(); if (isset($_GET['Producto'])) { $model->setAttributes($_GET['Producto']); } $this->render('admin', array('model' => $model)); }
public function actionVerTodos() { $session = new CHttpSession(); $session->open(); $model = new Producto('search'); $model->unsetAttributes(); if (isset($_GET['Producto'])) { $model->setAttributes($_GET['Producto']); } $session['Producto_model_search'] = $model; $this->render('verTodos', array('model' => $model)); }