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

(This post was last modified: 12-31-2014, 11:38 PM by bclinton.)

(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



Theme © iAndrew 2016 - Forum software by © MyBB