I have a problem here. I created a cakePHP application using the Bake feature of cakePHP. I baked my Model, my Controller and my views (with default index, add, edit, and view actions). I created a small table called users in my database which contains only three fields (id int auto_increment primary key, username varchar(15), password charr(40)). The problem that I'm having is that when I use the Auth component, I get stuck on the logging page forever (until I take it out). I have tried almost EVERYTHING in my functions login() and beforeFilter() with no success. Any idea please?
I use the Auth component like so in my Users Controller:
var $components = array('Auth');
I have tried this in my function beforeFilter(), but it does not work:
function beforeFilter() {
$this->Auth->autoRedirect = false;
parent::beforeFilter();
}
I have even tried to redirect right in my function login() like so:
function login() {
$this->redirect($this->Auth->redirect());
}
But when I do this I get error 310: TOO MANY REDIRECTS.
I cannot go to my index, or add, or view page. Help please?