DeadxBeat Posted February 17, 2011 Share Posted February 17, 2011 Should my error class make use of static functions that every class can use or when an error occurs should I instantiate a new object containing the errors needed to be displayed? Also, if I go the static route should I just run something like Error::display_errors() once on the index page where content should go or should i have it call display_errors at the end of class function that needs it. Quote Link to comment https://forums.phpfreaks.com/topic/228022-error-handling-class/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.