Run standard controller manually |
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
ressan.ir
CI is nice
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.
|
Welcome Guest, Not a member yet? Register Sign In |