AppController::beforeRender() fails to fire when rendering an error page
Hey folks, strange problem here with Cake 2.2.1
When I have an error or exception, whether in debug mode 0 or 1, it successfully renders my default layout, but a bunch of variables have not been set in the view, because the chain of method execution never calls my AppController::beforeRender(). I thought the default error handling behavior was supposed to fire this to prevent this problem of view vars not being set. I tried to overwrite some error rendering (similar to discussion in this post, the solution of which simply does not work for me) by creating CakeErrorController.php and returning parent::beforeRender() but this, strangely, creates an infinite loop.
I cannot figure this one out! Help!
-- You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home