Subversion Repositories SmartDukaan

Rev

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

Rev 14401 Rev 14434
Line 128... Line 128...
128
 *
128
 *
129
 * @return void
129
 * @return void
130
 */
130
 */
131
	public function admin_index() {
131
	public function admin_index() {
132
		$this->UserUrl->recursive = 0;
132
		$this->UserUrl->recursive = 0;
-
 
133
		$q = $this->request->query('q');
-
 
134
		if(isset($q) && !empty($q)){
-
 
135
			$this->Paginator->settings = array('conditions' => array('UserUrl.url LIKE'=>'%'.$q.'%'));
-
 
136
			$this->set(compact('q'));
-
 
137
		}
133
		$this->set('userUrls', $this->Paginator->paginate());
138
		$this->set('userUrls', $this->Paginator->paginate());
134
	}
139
	}
135
 
140
 
136
/**
141
/**
137
 * admin_view method
142
 * admin_view method