public function otherexpenseform() { $this->view->addCss('expense/inventoryexpenseform.css'); $this->view->addJs('jquery.validate.min.js'); if ($this->input->post() != null) { $data = $this->input->post(); Debug::log($data); $otherExpenseService = new OtherExpenseService(); $otherExpenseService->saveOtherExpense($data); $this->_showMessageAndRedirect(); } $this->renderView('otherexpenseform', array()); }