Subversion Repositories SmartDukaan

Rev

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

Rev 18390 Rev 18393
Line 118... Line 118...
118
 * @throws NotFoundException
118
 * @throws NotFoundException
119
 * @param string $id
119
 * @param string $id
120
 * @return void
120
 * @return void
121
 */
121
 */
122
	public function view($id = null) {
122
	public function view($id = null) {
-
 
123
		$userId = $this->request->query('user_id');
123
		if(isset($userId) && !empty($userId)) {
124
		if(isset($userId) && !empty($userId)) {
124
			$this->loadModel('User');
125
			$this->loadModel('User');
125
			$dbuser = $this->User->findById($userId);
126
			$dbuser = $this->User->findById($userId);
126
			$this->Auth->login($dbuser['User']);
127
			$this->Auth->login($dbuser['User']);
127
		}				
128
		}				
Line 132... Line 133...
132
		//Filter - brand/subcategory		
133
		//Filter - brand/subcategory		
133
		$brands = $this->request->query('brands');
134
		$brands = $this->request->query('brands');
134
		$subcategories = $this->request->query('subcategories');
135
		$subcategories = $this->request->query('subcategories');
135
		
136
		
136
		$searchableSubCategories = array('20'=>'Tempered Glasses', '19^27'=>'Mobile Covers');
137
		$searchableSubCategories = array('20'=>'Tempered Glasses', '19^27'=>'Mobile Covers');
137
		$userId = $this->request->query('user_id');
-
 
138
		
138
		
139
		$page = $this->request->query('page');
139
		$page = $this->request->query('page');
140
		$searchfor = $this->request->query('searchFor');
140
		$searchfor = $this->request->query('searchFor');
141
		// echo "page=>",$page;
141
		// echo "page=>",$page;
142
		$error = $this->request->query('error');
142
		$error = $this->request->query('error');