Codeigniter: custom method in custom 'MY_Router' class
I have made custom method in 'MY_Router'. How and where can I call this mthod开发者_运维技巧 ?
MY_Router class is extending CI_Router.
Can some one guide me in this regards.
CodeIgniter loads your MY_Router class automatically if you put it in application/core for 2.0, otherwise application/library for 17.x.
If you wish to call your method from the controller, just use $this->router->foo();
精彩评论