• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing Admin/User/Public controllers to insure authentication

#9
(12-31-2014, 12:04 PM)sneakyimp Wrote: I'd strongly recommend registering an autoloading function in a pre-system hook. You can say goodbye to include/require statements and stop worrying about inheritance.

Most of this thread seems like a lot of conversation devoted to avoiding the following line of code:


PHP Code:
include_once(APPPATH.'core/Admin_Controller.php'); 


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?
Reply


Messages In This Thread
RE: Writing Admin/User/Public controllers to insure authentication - by bclinton - 12-31-2014, 11:38 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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