You CAN use components in beforeFilter:

function beforeFilter()
{
        if ($this->Session->check('User'))
        {
                echo 'USER is there'; 
                exit;
        }
        else
        {
                echo 'USER is not there';
                exit;
        }
}

Try that.

He had another issue.

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Synchro
Enviado el: Lunes, 27 de Noviembre de 2006 09:27 p.m.
Para: Cake PHP
Asunto: Re: beforeFilter Problem

I ran into something similar - beware that beforeFilter is called
before any components get setup called on them, so essentially you
can't use components in beforeFilter.


--~--~---------~--~----~------------~-------~--~----~
 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