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

(This post was last modified: 01-06-2015, 03:37 PM by ivantcholakov. Edit Reason: A clarification )

Hm, within the bootstrap file Composer loader is called after controller instantiation.


In this case CodeIgniter.php might be faked with a custom version, sorry about that.

Copy system/code/CodeIgniter.php within application/core/

In index.php make a replacement

require_once APPPATH.'core/CodeIgniter.php';

Edit the copied file CodeIgniter.php and move Composer activation code before the controller instantiation.


The cleaner way is asking in GitHub this modification (moving the Composer code fragment) to be done within the original file CodeIgniter.php.

Edit: Not "controller instabtiation", "loading controller files", my bad.

Messages In This Thread
RE: Writing Admin/User/Public controllers to insure authentication - by ivantcholakov - 01-06-2015, 03:26 PM

Theme © iAndrew 2016 - Forum software by © MyBB