/** * */ public function listAction() { $this->_helper->layout()->disableLayout(); $this->view->rows = $this->_mapper->listAll(); }
/** * */ public function fetchUnitCostAction() { $scholarity = $this->_getParam('scholarity'); $mapperUnitCost = new Fefop_Model_Mapper_UnitCost(); $unitCost = $mapperUnitCost->getUnitCost($scholarity); $json = array('id' => null, 'cost' => 0); if (!empty($unitCost)) { $json = array('id' => $unitCost->id_unit_cost, 'cost' => number_format($unitCost->cost, 2, '.', '.')); } $this->_helper->json($json); }