Subversion Repositories SmartDukaan

Rev

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

Rev 18655 Rev 19244
Line 21... Line 21...
21
		parent::beforeFilter();
21
		parent::beforeFilter();
22
		$this->Auth->allow('deals');
22
		$this->Auth->allow('deals');
23
		$this->apihost = Configure::read('pythonapihost');
23
		$this->apihost = Configure::read('pythonapihost');
24
		$this->limit = Configure::read('dealsperpage');
24
		$this->limit = Configure::read('dealsperpage');
25
		$this->mobileapi = Configure::read('saholicapihost');
25
		$this->mobileapi = Configure::read('saholicapihost');
-
 
26
		setcookie("fresh", '1', null, '/');
26
		
27
		
27
	}
28
	}
28
 
29
 
29
/**
30
/**
30
 * index method
31
 * index method
Line 326... Line 327...
326
 
327
 
327
 
328
 
328
	}
329
	}
329
 
330
 
330
	public function dealdetail($item_id = null){
331
	public function dealdetail($item_id = null){
-
 
332
		setcookie("fresh", '0', null, '/');
331
		$this->layout = "innerpages";
333
		$this->layout = "innerpages";
332
		$dealinfo = $deal = array();
334
		$dealinfo = $deal = array();
333
		$likedDeals = $disLikedDeals = array();
335
		$likedDeals = $disLikedDeals = array();
334
		$url = $this->mobileapi.'entity/'.$item_id;
336
		$url = $this->mobileapi.'entity/'.$item_id;
335
		$dealinfo = $this->make_request($url,null);
337
		$dealinfo = $this->make_request($url,null);