public function levelCombosTwoAction() { $this->_helper->layout->disableLayout(); $office = $this->_request->office; $province_id = $this->_request->combo1; $stakeholder_id = $this->_identity->getStakeholderId(); $location = new Model_Locations(); $location->form_values = array('parent_id' => 10, 'geo_level_id' => 2); $warehouse = new Model_Warehouses(); $warehouse->form_values = array('province_id' => $province_id, 'stakeholder_id' => $stakeholder_id); switch ($office) { case 1: break; case 2: $this->view->result = $warehouse->getProvincialWarehouses(); break; case 3: $this->view->result = $warehouse->getDivsionalWarehousesofProvince(); break; case 4: $this->view->result = $location->getLocationsByLevel(10, 2); break; case 5: $this->view->result = $location->getLocationsByLevel(10, 2); break; case 6: $this->view->result = $location->getLocationsByLevel(10, 2); break; case 7: $this->view->result = $location->getLocationsByLevel(10, 2); break; case 8: $this->view->result = $location->getLocationsByLevel(10, 2); break; case 9: $this->view->result = $location->getLocationsByLevel(10, 2); break; } }