Subversion Repositories SmartDukaan

Rev

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

Rev 15026 Rev 15042
Line 147... Line 147...
147
		$notification = $this->NotificationRule->getNotification($this->Auth->User('id'));	
147
		$notification = $this->NotificationRule->getNotification($this->Auth->User('id'));	
148
	    $filterstr = '';
148
	    $filterstr = '';
149
		if(isset($filter) && !empty($filter)){
149
		if(isset($filter) && !empty($filter)){
150
		    $filterstr = '&filter='.$filter.'&brands='.$brands;
150
		    $filterstr = '&filter='.$filter.'&brands='.$brands;
151
	  	} 
151
	  	} 
-
 
152
	  	$brandschosen = $_COOKIE['brandschosen'];	  	
152
		$this->set(compact('deals','id','likedDeals','disLikedDeals','page','sort','direction','notification','filter','brands','filterstr'));
153
		$this->set(compact('deals','id','likedDeals','disLikedDeals','page','sort','direction','notification','filter','brands','filterstr','brandschosen'));
153
	}
154
	}
154
 
155
 
155
	public function getdeals($id = null) {
156
	public function getdeals($id = null) {
156
		$this->log('getdeal id '.$id,'api');
157
		$this->log('getdeal id '.$id,'api');
157
		$likedDeals = $disLikedDeals = array();
158
		$likedDeals = $disLikedDeals = array();