public function reclamoAction() { //Conectamos con BBDD $sid = new Container('base'); $db_name = $sid->offsetGet('dbNombre'); $this->dbAdapter = $this->getServiceLocator()->get($db_name); //Instancias $recl = new ReclamoTable($this->dbAdapter); $data['reclamos'] = $recl->getReclamo($this->dbAdapter); //Retornamos a la vista $result = new ViewModel($data); $result->setTerminal(true); return $result; }
public function reclamoAction() { //Instancias $sid = new Container('base'); //Obtenemos datos de sesion $db_name = $sid->offsetGet('dbNombre'); //Conectamos a BBDD Condominio $this->dbAdapter = $this->getServiceLocator()->get($db_name); //Obtenemos datos POST $data = $this->request->getPost(); //Tablas $reclamo = new ReclamoTable($this->dbAdapter); $reclamo3 = $reclamo->getReclamo($id); // $this->layout('layout/usuario'); return new ViewModel(array('reclamo' => $reclamo3)); }