I'd be happy to just have it show the *exact same* page as it does in dev, in production. I can filter out most of the debugging by checking the environment. Is there any way to do that?
It works fine in _dev (w/o custom action) so it can't be the worst thing ever to make this happen, I hope. In my case, I don't do anything (and -wont- do anything) that touches the DB in the layout.php or custom action (Assuming I can use one). Alternately, you say a filter is the most likely way to go, and only catch sfException and other named exceptions. I assume that after catching one I would ->forward() to the appropriate action. I've never written a filter, but I assume there is an example out there somewhere =) Thanks, //Andrew 2008/7/17 Nicolas Perriault <[EMAIL PROTECTED]>: > > On Thu, Jul 17, 2008 at 5:22 AM, Andrew Backer <[EMAIL PROTECTED]> wrote: > > > How do I set up symfony to display a custom page an sfException is > thrown, > > and the app is in production mode? > > At least, you can customize your 500 error page by just creating a > web/errors/error500.php standard PHP script in your project. But you > won't be able to catch the exception which caused the error here :-/ > > You could also use a filter to catch every targeted exceptions (always > avoid to catch Exception by default, some are used by symfony itself > to redirect requests) and do something useful with them. > > ++ > > -- > Nicolas Perriault > http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com > Phone: +33 660 92 08 67 > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
