public function getSohAction() { $item = new Model_ItemPackSizes(); $this->view->items = $item->getAllItems(); $wh_data = new Model_WarehousesData(); $params["date"] = $this->_request->getParam("date"); $params["item"] = $this->_request->getParam("item"); $level = $this->_request->getParam("level"); $province = $this->_request->getParam("province"); $wh_data->form_values = $params; if ($level == 1) { $xmlstore = $wh_data->getSOH(); } else { $xmlstore = $wh_data->getSOHByDistricts($province); } $this->view->xmlstore = $xmlstore; }