Subversion Repositories SmartDukaan

Rev

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

Rev 13570 Rev 13571
Line 27... Line 27...
27
 * @return void
27
 * @return void
28
 * @throws NotFoundException When the view file could not be found
28
 * @throws NotFoundException When the view file could not be found
29
 *	or MissingViewException in debug mode.
29
 *	or MissingViewException in debug mode.
30
 */
30
 */
31
	public function display() {
31
	public function display() {
32
		$page = isset($this->request->query('page'))?$this->request->query('page'):1;
32
		$page = $this->request->query('page');
-
 
33
		if(!isset($page)){
-
 
34
			$page = 1;
-
 
35
		}
33
		if($this->request->is('ajax')){
36
		if($this->request->is('ajax')){
34
			$this->layout = 'ajax';
37
			$this->layout = 'ajax';
35
		}
38
		}
36
		$path = func_get_args();
39
		$path = func_get_args();
37
 
40