Subversion Repositories SmartDukaan

Rev

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

Rev 16594 Rev 16601
Line 21... Line 21...
21
 * index method
21
 * index method
22
 *
22
 *
23
 * @return void
23
 * @return void
24
 */
24
 */
25
	public function index($slug,$type='android') {
25
	public function index($slug,$type='android') {
-
 
26
		$page = $this->request->query('page');
-
 
27
		if(!isset($page)){			
-
 
28
			$page = 1;
-
 
29
		}
26
		$slug = $this->params['slug1'];
30
		$slug = $this->params['slug1'];
27
		$type = $this->params['slug2'];
31
		$type = $this->params['slug2'];
28
		$me = $slug-1984;
32
		$me = $slug-1984;
29
		$appOffers = array();
33
		$appOffers = array();
30
		$url = "http://104.200.25.40:8057/appOffers/1";
34
		$url = "http://104.200.25.40:8057/appOffers/1";
31
		$appOffers = $this->make_request($url,null);
35
		$appOffers = $this->make_request($url,null);
32
		$this->set(compact('appOffers','me','slug','type'));
36
		$this->set(compact('appOffers','me','slug','type','page'));
33
		// $this->set('appOffers', $this->Paginator->paginate());
37
		// $this->set('appOffers', $this->Paginator->paginate());
34
	}
38
	}
35
 
39
 
36
/**
40
/**
37
 * view method
41
 * view method