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

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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