Welcome Guest, Not a member yet? Register   Sign In
Run standard controller manually
#1

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
ressan.ir
CI is nice Heart
Reply
#2

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB