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

#22
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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