Subversion Repositories SmartDukaan

Rev

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

Rev 13633 Rev 13672
Line 13... Line 13...
13
 *
13
 *
14
 * @var array
14
 * @var array
15
 */
15
 */
16
	public $components = array('Paginator');
16
	public $components = array('Paginator');
17
 
17
 
18
	public function beforeFilter() {
18
	public function beforeFilter() {		
19
		parent::beforeFilter();
19
		parent::beforeFilter();
20
		$this->Auth->allow('add');
20
		$this->Auth->allow('add');
-
 
21
		$this->apihost = Configure::read('pythonapihost');
21
	}
22
	}
22
	
23
	
-
 
24
	public function mine() {
-
 
25
		$this->layout = "innerpages";
-
 
26
		$url = $this->apihost."storeorder/user/".$this->Auth->User('id')."?page=1&window=10";
-
 
27
		$response = $this->make_request($url,null);
-
 
28
		if(!empty($response['data'])){
-
 
29
			$this->set('orders',$response['data']);
-
 
30
		}
-
 
31
	}
-
 
32
 
23
/**
33
/**
24
 * index method
34
 * index method
25
 *
35
 *
26
 * @return void
36
 * @return void
27
 */
37
 */