protected function generateCountryStateData() { $country = oseMscMethods::getCountry(); $state = oseMscMethods::getState(); $result = array(); $result['country'] = $country; $result['state'] = $state; return $result; }
protected function generateCountryStateJS() { //$model = $this->getModel('register'); $country = oseMscMethods::getCountry(); $state = oseMscMethods::getState(); $output = "\r\n"; $output .= "var getCountry = function() {return " . oseJson::encode($country) . "};"; $output .= "\r\n"; $output .= "var getState = function() {return " . oseJson::encode($state) . "};"; return $output; }