public function edit()
 {
     //die();
     $id = $this->getParam('id');
     $modelstatusevento = new statuseventoModel();
     $resstatusevento = $modelstatusevento->getStatusEvento('codigo=' . $id);
     $this->smarty->assign('registro', $resstatusevento[0]);
     $this->smarty->assign('title', 'Detalhes dos Status Eventos');
     //call the smarty
     $this->smarty->display('statusevento/edit.tpl');
 }
 public function edit()
 {
     //die();
     $id = $this->getParam('id');
     $modelevento = new eventoModel();
     $resevento = $modelevento->getEvento('e.codigo=' . $id);
     $this->smarty->assign('registro', $resevento[0]);
     $model_statuseventos = new statuseventoModel();
     $statuseventos_res = $model_statuseventos->getStatusEvento();
     //Full table Scan :( or :)
     //send the records to template sytem
     $this->smarty->assign('liststatusevento', $statuseventos_res);
     //list all records
     $model_cidade = new cidadeModel();
     $cidade_res = $model_cidade->getCidade();
     //Full table Scan :( or :)
     //send the records to template sytem
     $this->smarty->assign('listscidade', $cidade_res);
     $this->smarty->assign('title', 'Detalhes dos Eventos');
     //call the smarty
     $this->smarty->display('evento/edit.tpl');
 }