Subversion Repositories SmartDukaan

Rev

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

Rev 16720 Rev 16942
Line 15... Line 15...
15
 *
15
 *
16
 * @var array
16
 * @var array
17
 */
17
 */
18
	public $components = array('Paginator', 'Flash', 'Session');
18
	public $components = array('Paginator', 'Flash', 'Session');
19
 
19
 
-
 
20
	public function beforeFilter() {
-
 
21
		$this->Auth->allow('nocode');
-
 
22
	}
-
 
23
	
20
/**
24
/**
21
 * index method
25
 * index method
22
 *
26
 *
23
 * @return void
27
 * @return void
24
 */
28
 */
Line 27... Line 31...
27
		if(!isset($page)){			
31
		if(!isset($page)){			
28
			$page = 1;
32
			$page = 1;
29
		}
33
		}
30
		$slug = $this->params['slug1'];
34
		$slug = $this->params['slug1'];
31
		$type = $this->params['slug2'];
35
		$type = $this->params['slug2'];
-
 
36
		if($slug<1984) {
-
 
37
			return $this->redirect(array('action' => 'nocode',2,3,4));
-
 
38
			exit();
-
 
39
		}
32
		$me = $slug-1984;
40
		$me = $slug-1984;
33
		$appOffers = array();
41
		$appOffers = array();
34
		$url = $this->apihost."appOffers/1";
42
		$url = $this->apihost."appOffers/1";
35
		$appOffers = $this->make_request($url,null);
43
		$appOffers = $this->make_request($url,null);
36
		$this->set(compact('appOffers','me','slug','type','page'));
44
		$this->set(compact('appOffers','me','slug','type','page'));
37
		// $this->set('appOffers', $this->Paginator->paginate());
45
		// $this->set('appOffers', $this->Paginator->paginate());
38
	}
46
	}
39
 
47
 
-
 
48
	public function nocode($i,$j,$k){
-
 
49
 
-
 
50
	}
40
/**
51
/**
41
 * view method
52
 * view method
42
 *
53
 *
43
 * @throws NotFoundException
54
 * @throws NotFoundException
44
 * @param string $id
55
 * @param string $id