Subversion Repositories SmartDukaan

Rev

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

Rev 13808 Rev 14929
Line 134... Line 134...
134
				}else{
134
				}else{
135
					$disLikedDeals[$value['UserAction']['store_product_id']] = $value['UserAction']['id'];
135
					$disLikedDeals[$value['UserAction']['store_product_id']] = $value['UserAction']['id'];
136
				}
136
				}
137
			}
137
			}
138
		}
138
		}
-
 
139
		$this->loadModel('NotificationRule');
-
 
140
		$notification = $this->NotificationRule->getNotification($this->Auth->User('id'));	
139
		$this->set(compact('deals','id','likedDeals','disLikedDeals','page','sort','direction'));
141
		$this->set(compact('deals','id','likedDeals','disLikedDeals','page','sort','direction','notification'));
140
	}
142
	}
141
 
143
 
142
	public function getdeals($id = null) {
144
	public function getdeals($id = null) {
143
		$this->log('getdeal id '.$id,'api');
145
		$this->log('getdeal id '.$id,'api');
144
		$likedDeals = $disLikedDeals = array();
146
		$likedDeals = $disLikedDeals = array();