You're overriding beforeFilter() so you have to explicitly call it for
the parent as well.
function beforeFilter()
{
parent::beforeFilter();
$this->set('errorState',true); // used for conditional validation
management in view
}
On Tue, Jun 3, 2008 at 5:14 AM, leo <[EMAIL PROTECTED]> wrote:
>
> If I put this in MyController:
>
> function beforeFilter()
> {
> $this->set('errorState',true); // used for conditional validation
> management in view
> }
>
> then P28n message translation fails.
>
> If I put in in the parent AppController, P28n works fine.
>
> Does anybody have any idea why this should be? I don't necessarily
> want it set in the AppController (I can't think why not).
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---