Feature #86

Error Handling

Added by Josh Elser 234 days ago.

Status:New Start:12/06/2009
Priority:Low Due date:
Assigned to:Josh Elser % Done:

0%

Category:- Spent time: -
Target version:-
Resolution:


Description

So, I thought of this idea in the last project I did.

We have a bunch of die() calls left in the code which are really rather nasty nasty. What I'd like to do is make an "error" template and instead of dieing, set an error message in the smarty template variable, and just load that error message in the template file.

This way we have an error page that we can call anywhere that will be stylistically correct with the rest of the site. Granted, we should try the best we can to grab all errors in the javascript before we submit the form, but having the php to fall back on would be delightful.

Also available in: Atom PDF