Welcome Guest, Not a member yet? Register   Sign In
Class 'CI_Controller' not found
#5

(05-21-2019, 12:28 AM)Lucy789 Wrote:
(05-20-2019, 01:30 PM)Wouter60 Wrote: Never modify any files in the system folder or subfolders.
Only create or modify files in the application folder and it's subfolders.

Thanks for the answer. But I need to modify the method in core/Common.php
I get in this method via a global variable $_SERVER the remote ip-address and I need to get data from database or from session and to record in log message.
Therefore, for me, the best way out would be to connect the session library to this method and get the data. But I think core/Controller declares later than Common.php and therefore I getting this error.

I don't see that any of your requirements cannot be accomplished in the controller's constructor. You're going to have to provide more code and strong arguments for hacking the core.
Reply


Messages In This Thread
Class 'CI_Controller' not found - by Lucy789 - 05-20-2019, 11:49 AM
RE: Class 'CI_Controller' not found - by Wouter60 - 05-20-2019, 01:30 PM
RE: Class 'CI_Controller' not found - by Lucy789 - 05-21-2019, 12:28 AM
RE: Class 'CI_Controller' not found - by dave friend - 05-21-2019, 10:03 AM
RE: Class 'CI_Controller' not found - by InsiteFX - 05-21-2019, 03:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB