Subversion Repositories SmartDukaan

Rev

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

Rev 14929 Rev 14930
Line 107... Line 107...
107
 * @throws NotFoundException
107
 * @throws NotFoundException
108
 * @param string $id
108
 * @param string $id
109
 * @return void
109
 * @return void
110
 */
110
 */
111
	public function view($id = null) {
111
	public function view($id = null) {
-
 
112
		$userId = $this->request->query('user_id');
-
 
113
		if(isset($userId) && !empty($userId)){
112
		// $this->checkMobileNumber();
114
			$this->loadModel('User');
-
 
115
			$dbuser = $this->User->findById($userId);
-
 
116
			$this->Auth->login($dbuser['User']);
-
 
117
		}
113
		$likedDeals = $disLikedDeals = array();
118
		$likedDeals = $disLikedDeals = array();
114
		// if (!$this->Category->exists($id)) {
119
		// if (!$this->Category->exists($id)) {
115
			// throw new NotFoundException(__('Invalid category'));
120
			// throw new NotFoundException(__('Invalid category'));
116
		// }
121
		// }
117
		$page = $this->request->query('page');
122
		$page = $this->request->query('page');