public function updateTemplateAction() { $templateId = $this->_getParam('id', null); $name = $this->_getParam('name', null); $fields = $this->_getParam('fields', array()); try { $historyService = new Application_Service_HistoryService(); $historyService->updateItemTemplate($templateId, $name, $fields); } catch (Exception $e) { Logging::info($e); Logging::info($e->getMessage()); } }