Subversion Repositories SmartDukaan

Rev

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

Rev 13699 Rev 14891
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','pending');
20
		$this->Auth->allow('howitworks','pending','native');
21
		$this->layout = 'static';
21
		$this->layout = 'static';
22
	}
22
	}
23
/**
23
/**
24
 * index method
24
 * index method
25
 *
25
 *
Line 45... Line 45...
45
			$this->loadModel('User');
45
			$this->loadModel('User');
46
			$dbuser = $this->User->findById($userId);
46
			$dbuser = $this->User->findById($userId);
47
			$this->Auth->login($dbuser['User']);	
47
			$this->Auth->login($dbuser['User']);	
48
		}
48
		}
49
	}
49
	}
-
 
50
 
-
 
51
	public function native(){
-
 
52
		$this->layout = 'ajax';
-
 
53
	}
50
}
54
}