开发者

Codeigniter: custom method in custom 'MY_Router' class

开发者 https://www.devze.com 2023-02-15 05:15 出处:网络
I have made custom method in \'MY_Router\'. How and where can I call this mthod开发者_运维技巧 ?

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();

0

精彩评论

暂无评论...
验证码 换一张
取 消