First, in your admin_index() function, in the if statement:
$this->redirect('/admin/xyz'); should be INSIDE the {} like this:

if ($logged)
{
     $this->redirect('/admin/xyz');
}

Second, in the same function, in your else clause, you have 2 return
statements.  Unless I'm mistaken, a function can only have one return
statement.

I hope that helps a little bit.

hydra12


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to