Welcome Guest, Not a member yet? Register   Sign In
Writing Admin/User/Public controllers to insure authentication
#17

(12-31-2014, 11:38 PM)bclinton Wrote: What's so horrible about an include_once statement above your controller class declaration that indicates the location of the custom controller class you are extending?
What's horrible about it is that one line here and one line there means more lines all around and in many cases, it's not one line but many includes/requires and one must also fret in some cases over the sequence of these includes/requires, etc., et. al. Every line of code you add contributes to the burden of maintaining your code project. Each bug due to a missing include could mean a few minutes of logging into the server, digging around to find the problem, possibly more if the problem happens sometimes but not others.

It adds up in a complex project.
Reply


Messages In This Thread
RE: Writing Admin/User/Public controllers to insure authentication - by sneakyimp - 01-05-2015, 01:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB