Subversion Repositories SmartDukaan

Rev

Rev 17846 | Rev 17849 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17846 Rev 17848
Line 151... Line 151...
151
	 }
151
	 }
152
 
152
 
153
	 public function getstate($pin_val){
153
	 public function getstate($pin_val){
154
	 	$this->autoRender = false;	
154
	 	$this->autoRender = false;	
155
		$this->request->onlyAllow('ajax');
155
		$this->request->onlyAllow('ajax');
156
		$url = "http://dtr:8057/pincodeValidation/".$pin_val;
156
		$url = $pythonapihost."pincodeValidation/".$pin_val;
157
		$getstate =$this->make_request($url , null);
157
		$getstate =$this->make_request($url , null);
158
		// $getstate['state'] =  ucwords(strtolower($getstate['state']));
158
		// $getstate['state'] =  ucwords(strtolower($getstate['state']));
159
		$nothing = "nothing";
159
		$nothing = "nothing";
160
		if($getstate != "{}"){
160
		if($getstate != "{}"){
161
			$getstate['state'] =  ucwords(strtolower($getstate['state']));
161
			$getstate['state'] =  ucwords(strtolower($getstate['state']));