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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -