Overriding core classes |
Huh... go figure. I've created MY_Controller classes on many occasions without any problem.
Line #374 from Codeigniter.php only makes the class code available, it does not instantiate it. PHP Code: require_once APPPATH.'core/'.$CFG->config['subclass_prefix'].'Controller.php'; The controller is instantiated on line #518 PHP Code: $CI = new $class(); There's a whole bunch of error checking going on in between most of which results in a 404 if all the pieces cannot be found. You don't mention getting any errors. Did you? |
Messages In This Thread |
Overriding core classes - by imabot - 10-17-2018, 08:53 AM
RE: Overriding core classes - by dave friend - 10-17-2018, 12:25 PM
RE: Overriding core classes - by imabot - 10-17-2018, 12:46 PM
RE: Overriding core classes - by dave friend - 10-17-2018, 02:37 PM
RE: Overriding core classes - by imabot - 10-18-2018, 12:26 AM
RE: Overriding core classes - by dave friend - 10-18-2018, 05:30 AM
RE: Overriding core classes - by imabot - 10-18-2018, 05:42 AM
RE: Overriding core classes - by InsiteFX - 10-18-2018, 02:49 AM
RE: Overriding core classes - by imabot - 10-18-2018, 03:56 AM
|