Subversion Repositories SmartDukaan

Rev

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

Rev 13583 Rev 13591
Line 47... Line 47...
47
		));
47
		));
48
		$this->render('/Elements/jsonp');
48
		$this->render('/Elements/jsonp');
49
	}
49
	}
50
 
50
 
51
	public function deals(){
51
	public function deals(){
-
 
52
		$userId = $this->request->query('user_id');
-
 
53
		if(isset($userId) && !empty($userId)){
-
 
54
			$this->Auth->login($userId);
-
 
55
		}
52
		$likedDeals = $disLikedDeals = array();
56
		$likedDeals = $disLikedDeals = array();
53
		$this->loadModel('Api');
57
		$this->loadModel('Api');
54
		$apideals = $this->Api->getCategoryDeals($this->Auth->User('id'),1);
58
		$apideals = $this->Api->getCategoryDeals($this->Auth->User('id'),1);
55
		$categorydeals = $apideals['products'];
59
		$categorydeals = $apideals['products'];
56
		$myactions = $this->Api->getMyActions($this->Auth->User('id'));		
60
		$myactions = $this->Api->getMyActions($this->Auth->User('id'));