public function deleteLogBookAction() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(TRUE); if (isset($this->_request->id) && !empty($this->_request->id)) { $id = $this->_request->id; $this->_em->getConnection()->beginTransaction(); try { $log_book = new Model_LogBook(); $log_book->deleteLogBook($id); $this->_em->getConnection()->commit(); } catch (Exception $e) { $this->_em->getConnection()->rollback(); $this->_em->close(); App_FileLogger::info($e); } echo 1; exit; } }