PHP MVC error handling, view display and user permissions
- by cen
I am building a moderation panel from scratch in a MVC approach and a lot of questions cropped up during development. I would like to hear from others how they handle these situations.
Error handling
Should you handle an error inside the class method or should the method return something anyway and you handle the error in controller? What about…