Subversion Repositories SmartDukaan

Rev

Rev 16755 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16755 Rev 16779
Line 119... Line 119...
119
		if(!empty($type) && !empty($search)){
119
		if(!empty($type) && !empty($search)){
120
			$conditions[] = array($type .' LIKE ' => "%$search%");
120
			$conditions[] = array($type .' LIKE ' => "%$search%");
121
			// $options['conditions'][] = array($type.' LIKE ' =>"%$search%");			
121
			// $options['conditions'][] = array($type.' LIKE ' =>"%$search%");			
122
			// $this->Paginator->settings = $options;
122
			// $this->Paginator->settings = $options;
123
		}
123
		}
124
		print_r($conditions);
-
 
125
		$options['conditions'] = $conditions;
124
		$options['conditions'] = $conditions;
126
		$this->Paginator->settings = $options;	
125
		$this->Paginator->settings = $options;	
127
		$this->AppOffer->recursive = 0;
126
		$this->AppOffer->recursive = 0;
128
		$this->set('appOffers', $this->Paginator->paginate());
127
		$this->set('appOffers', $this->Paginator->paginate());
129
	}
128
	}