
Untitled
By: a guest on
Apr 26th, 2012 | syntax:
None | size: 0.52 KB | hits: 16 | expires: Never
<?php
class AppController extends Controller {
var $components = array('Auth', 'Session');
var $helpers = array('Html', 'Javascript', 'Form', 'Session');
function beforeFilter() {
parent::beforeFilter();
$this->Auth->loginRedirect = array(
'controller' => 'medias',
'action' => 'index'
);
$this->Auth->fields = array(
'username' => 'email',
'password' => 'password'
);
$this->Auth->loginAction = array(
'controller' => 'users',
'action' => 'login',
);
$this->Auth->autoRedirect = false;
}
}