Subversion Repositories SmartDukaan

Rev

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

Rev 19794 Rev 19807
Line 1480... Line 1480...
1480
			}
1480
			}
1481
		}
1481
		}
1482
	}
1482
	}
1483
	
1483
	
1484
	public function getcode($id){
1484
	public function getcode($id){
1485
		$agentid = Configure::read('agentid');
-
 
1486
		$this->autoRender = false;
1485
		$this->autoRender = false;
1487
		$this->request->onlyAllow('ajax');
1486
		$this->request->onlyAllow('ajax');
-
 
1487
		$agentid = Configure::read('agentid');
1488
		$url = $this->apihost."getDtrLink/".$agentid."/fresh/".$id;
1488
		$url = $this->apihost."getDtrLink/".$agentid."/fresh/".$id;
1489
		$response = $this->make_request($url,null); 
1489
		$response = $this->make_request($url,null); 
1490
		
1490
		
1491
		return json_encode($response['result']);
1491
		return json_encode($response['result']);
1492
		
1492