Subversion Repositories SmartDukaan

Rev

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

Rev 13685 Rev 13699
Line 15... Line 15...
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('howitworks');
20
		$this->Auth->allow('howitworks','pending');
21
		$this->layout = 'static';
21
		$this->layout = 'static';
22
	}
22
	}
23
/**
23
/**
24
 * index method
24
 * index method
25
 *
25
 *
26
 * @return void
26
 * @return void
27
 */
27
 */
-
 
28
 
-
 
29
	public function pending(){
-
 
30
		
-
 
31
	}
-
 
32
	
28
	public function index() {
33
	public function index() {
29
		$userId = $this->request->query('user_id');
34
		$userId = $this->request->query('user_id');
30
		if(isset($userId) && !empty($userId)){
35
		if(isset($userId) && !empty($userId)){
31
			$this->loadModel('User');
36
			$this->loadModel('User');
32
			$dbuser = $this->User->findById($userId);
37
			$dbuser = $this->User->findById($userId);