How to call a function in my_helper from routes in Codeigniter -


i have function named enable_disable(param1,param2) in my_helper.php.

how can call enable_disable(param1,param2) routes.php in codeigniter?

please share great ideas if have key.

write code (enable_disable($p1, $p2) function) in pre_system hook. being loaded before router. if want quick , dirty way, can put apppath.'config/config.php' file @ end.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -