Subversion Repositories SmartDukaan

Rev

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

Rev 16423 Rev 17684
Line 32... Line 32...
32
		$brands = $this->make_request($url,null);
32
		$brands = $this->make_request($url,null);
33
		$this->layout = 'innerpages';
33
		$this->layout = 'innerpages';
34
		$this->set(compact('brands','categoryId'));
34
		$this->set(compact('brands','categoryId'));
35
	}
35
	}
36
 
36
 
-
 
37
	public function subcategoryfilter($type='subcategory',$categoryId=6){
-
 
38
		$url = $this->apihost.'deals/subCategory/?category_id='.$categoryId;
-
 
39
		$brands = $this->make_request($url,null);
-
 
40
		debug($brands);
-
 
41
		$this->layout = 'innerpages';
-
 
42
		$this->set(compact('brands','categoryId'));
-
 
43
	}	
-
 
44
 
37
	public function search() {
45
	public function search() {
38
		$userId = $this->request->query('user_id');
46
		$userId = $this->request->query('user_id');
39
		if(isset($userId) && !empty($userId)){
47
		if(isset($userId) && !empty($userId)){
40
			$this->loadModel('User');
48
			$this->loadModel('User');
41
			$dbuser = $this->User->findById($userId);
49
			$dbuser = $this->User->findById($userId);