CodeIgniter Forums

Full Version: Run standard controller manually
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how i can run or execute standard controller?

i mean when user type "site/controller/method/params", CI triggers maincontroller/mainrouter and pass "controller" and "method" and "params" to it so i could to do something before or after executing that controller.

with HMVC i can do this for sub_controllers in modules folder using modules::run, but for main controllers in application/controllers, how i can do that?


i need this feature Sad Sad
It's not supported, CI is not HMVC framework. If you need that, use HMVC extension. It's frowned upon on though, since if you need the code in Controller on more places, you should put it in model/library instead.