Andrew Backer wrote:
> I've been searchin, but I can't figure this one out :(
>
> How do I set up symfony to display a custom page an sfException is
> thrown, and the app is in production mode? It works just fine if I use
> _dev instead of prod, but I would like to trap these as well. Right now
> all I get is an "internal server error" from apache. Ideally I'd like to
> use a custom layout / action when an exception is caught, but if I am
> stuck with just templates/error.php then that is OK as well.

you are stuck with that I'm afraid.

The reason is that the error could have been caused by anything, for 
example, lets assume it's the DB connection. If we were to allow you to 
specify a module/action, then it's possible you'd do something that 
would access the database - which would cause an error, an then it would 
circle round and round :)


> Thanks,
>
> //Andrew
>
> I am on .62, but so many things are the same that I hope this will apply.

I improved it slightly in 1.1 so that it's possible to specify 
per-application 500's, but the location of the files have changed, but 
it's pretty much the same.



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

Reply via email to