• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call get_instance() in Hook Class

#1
Hi everybody,

In my application I try to call get_instance() in pre_system hook class. But then error message appeared:

Code:
A PHP Error was encountered
Severity: Error
Message: Class 'CI_Controller' not found
Filename: core/CodeIgniter.php
Line Number: 366

that line refers to get_instance() function in core/CodeIgniter.php. After I check the pre_system hook called before the core/Controller.php included.

Any ideas how to solve this?
Reply


Messages In This Thread
Call get_instance() in Hook Class - by yllumi - 03-12-2015, 02:38 AM
RE: Call get_instance() in Hook Class - by Narf - 03-12-2015, 03:55 AM
RE: Call get_instance() in Hook Class - by CroNiX - 03-12-2015, 03:03 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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