开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜