public function ChangeStatesAction() { $request = Project::getRequest(); $state_id = $request->getKeyByNumber(0); if ($state_id) { $info = array(); $state_model = new CityModel(); $info['city_list'] = $state_model->loadByState($state_id); $this->_view->ChangeState($info); $this->_view->ajax(); } else { $response = Project::getAjaxResponse(); $response->block('city_div', true, ''); $this->_view->ajax(); } }
function ChangeStateAction() { $request = Project::getRequest(); $state_id = $request->getKeyByNumber(0); $info = array(); $state_model = new CityModel(); $info['city_list'] = $state_model->loadByState($state_id); $this->_view->ChangeState($info); $this->_view->ajax(); }