Esempio n. 1
0
 public function actionAdmin()
 {
     $model = new Producto('search');
     $model->unsetAttributes();
     if (isset($_GET['Producto'])) {
         $model->setAttributes($_GET['Producto']);
     }
     $this->render('admin', array('model' => $model));
 }
Esempio n. 2
0
 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));
 }