Changeset 336 for trunk/app/app_controller.php
- Timestamp:
- 03/24/08 14:42:08 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/app_controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/app_controller.php
r335 r336 7 7 8 8 class AppController extends Controller { 9 9 10 10 public $components = array('Auth', 'Cookie', 'Security'); 11 12 public $helpers = array('Html', 'Form', 'Session'); 13 11 12 public $helpers = array('Html', 'Form', 'Session'); 13 14 //deprecated public $allow = array('view', 'display', 'subscribe', 'recover', 'reply', 'register', 'insert', 'vote', 'entry', 'download', 'blog','portfolio', 'about', 'signup', 'message', 'search', 'directory', 'bloggers', 'add', 'rss', 'discussion'); 15 14 16 public function beforeFilter() 15 17 { … … 20 22 $this->Auth->loginError = 'Invalid e-mail / password combination. Please try again'; 21 23 $this->Auth->authorize = 'controller'; 22 $this->Auth-> allow( array('view', 'display', 'subscribe', 'recover', 'reply', 'register', 'insert', 'vote', 'entry', 'download', 'blog','portfolio', 'about', 'signup', 'message', 'search', 'directory', 'bloggers', 'add', 'rss', 'discussion'));24 $this->Auth->deny('*'); 23 25 $this->Auth->autoRedirect = true; 24 26 $this->set('cU', $this->Auth->user()); // $cU current user array to use in the views if user logged
