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

(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.

1.

In this case CodeIgniter.php might be faked with a custom version, sorry about that.
https://github.com/bcit-ci/CodeIgniter/c...nt-6985684

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

In index.php make a replacement

Code:
require_once APPPATH.'core/CodeIgniter.php';

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

2.

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


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