Graceful Handling of Technical PHP/SQL errors -
i'm developing php web application heavy on database interactions. question is, how display "pretty" errors. i've got kinds of exceptions , not in pretty every aspect of app, still awkwardly post error text (which have working perfectly) either above half loaded page or on blank, white background.
how go rerouting these generic error page has nice, contained spot inserting error message clients , testers can communicate me.
my immediate guess post these errors, don't know how outside form less inside of function.
you're using exceptions, that's good.
you can prostpone output using output buffering control, , display errors condensed @ required area of page.
the actual technique revolves around appending of errors $errors
array , iterating through displaying nice errors along way.
Comments
Post a Comment