• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.