11.26
php
saved
predominant
Note
Acl and Auth AppController
Acl and Auth AppController
- class AppController extends Controller
- {
- 'Html',
- 'Javascript',
- 'Form',
- 'Time');
- 'Acl',
- 'Auth',
- 'Session');
- 'pages');
- function beforeFilter()
- {
- {
- Security::setHash('md5');
- $this->Auth->authorize = 'actions';
- $this->Auth->userModel = 'Employee';
- 'controller' => 'employees',
- 'action' => 'login');
- 'controller' => 'employees',
- 'action' => 'summary');
- 'username' => 'email',
- 'password' => 'password_md5');
- 'controller' => 'employees',
- 'action' => 'login');
- $this->Auth->loginError = 'An error occurred logging you in.';
- $this->Auth->authError = 'You are not authorised to view this page.';
- $this->Auth->allow();
- }
- }
- }
Parsed in 0.092 seconds, using GeSHi 1.0.7.14