public function consumptionMosAction() { $item = new Model_ItemPackSizes(); $this->view->items = $item->getAllItems(); $period = $this->_request->getParam("period"); $date = $this->_request->getParam("date"); $item = $this->_request->getParam("item"); $graphs = new Model_Graphs(); $location = new Model_Locations(); $provinces = $location->getPilotProvinces(); foreach ($provinces as $row) { $graphs->form_values = array('products' => array($item), 'yearcomp' => array($date), 'all_provinces' => $row['pk_id'], 'all_districts' => '', 'optvals' => 2, 'period' => $period); $xmlstore[] = $graphs->getMSGraphConsMOS(); } $this->view->xmlstore = $xmlstore; }