Subversion Repositories SmartDukaan

Rev

Rev 15403 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15403 Rev 19801
Line 225... Line 225...
225
		} else {
225
		} else {
226
			$this->Session->setFlash(__('The retailer could not be deleted. Please, try again.'));
226
			$this->Session->setFlash(__('The retailer could not be deleted. Please, try again.'));
227
		}
227
		}
228
		return $this->redirect(array('action' => 'index'));
228
		return $this->redirect(array('action' => 'index'));
229
	}
229
	}
230
 
-
 
231
	
230
	
-
 
231
	public function getstate($pin_val) {
-
 
232
		$this->autoRender = false;
-
 
233
		$this->request->onlyAllow ( 'ajax' );
-
 
234
		$url = $this->apihost . "pincodeValidation/" . $pin_val;
-
 
235
		$getstate = $this->make_request ( $url, null );
-
 
236
		// $getstate['state'] = ucwords(strtolower($getstate['state']));
-
 
237
		$nothing = "nothing";
-
 
238
		if ($getstate != "{}") {
-
 
239
			$getstate ['state'] = ucwords ( strtolower ( $getstate ['state'] ) );
-
 
240
		}
-
 
241
		return json_encode ( $getstate );
-
 
242
	}
232
}
243
}