Esempio n. 1
0
 public function _delete()
 {
     $operation_status = $this->crud->delete($this->id);
     //em sucesso esta retornando 1
     $status = $operation_status == 1;
     $this->session->setData("submit_status", $status);
     if (!$status) {
         $this->session->setData("submit_error", $operation_status);
     }
     $this->posSubmit();
     //@todo ainda não está exibindo as mensagem de sucesso ou erro
     return $this->_list();
 }