AppError have controller reference: $this->controller - it is not
surely some of your controllers but an AppController at least. You can
call beforeFilter() on it. Same for beforeRender(). I solve this
problem such way.

On Aug 9, 10:45 am, David <[email protected]> wrote:
> I had been wondering why my error page caused certain pages of my site
> not to render, but then I realized that it's because AppError extends
> ErrorHandler instead of AppController.  This caused some variables
> that I set in AppController's beforeFilter method not to be sent to
> the view.  Since I can't access session variables from AppError, I
> thought that I might be able to get away with using the classRegistry
> to instantiate something that could and simply copying and pasting the
> rest of my code from AppController's beforeFilter... but that didn't
> seem like a very elegant fix.  Does anyone have any clues as to what
> would be the best way to approach this?  Thanks, David.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to