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

"How can this be less portable than hard-coding everywhere?" - For autoloading it is not hard-coding everywhere, it is hard-coding within one single place: https://github.com/ivantcholakov/starter...toload.php It is a manageable way. Even, if you must place a specific class within a weird directory due to an external reason, you may use a map within a configuration file.

"It's the same with everything: function, class name, configuration item..." - For the specific task of loading classes I can avoid bothering about this aspect, so I do it.
Reply


Messages In This Thread
RE: Writing Admin/User/Public controllers to insure authentication - by ivantcholakov - 01-03-2015, 10:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB