I would like to know where is the controller started (I mean where is the file included and then it’s class is loaded and it’s methods are called). I would like to know because I would like to create a minor modification to the core.
What I actually need is to simulate calling new controllers. I don’t need a technology like HMVC but instead I am working on something much simpler but I really need to simulate calling controllers which could later interact with the requested controller.
I already extended the core’s Loader class to enable calling new controllers through the loader class but I can’t find where are the controllers initiated.
It’s in
system/core/CodeIgniter.phpfrom line 317 to 360 (CodeIgniter 2.1.0).It still doesn’t make any sense what you’re trying to do, though.