开发者

How to have any unavailable function names as index() get parameters in Codeigniter?

开发者 https://www.devze.com 2023-03-18 20:52 出处:网络
In codeigniter, How can i automatically take any unavailable function name as a URL parameter of index() ?Example.If i have index() and say_hello() in my controller i want to be able to 开发者_开发百科

In codeigniter, How can i automatically take any unavailable function name as a URL parameter of index() ? Example. If i have index() and say_hello() in my controller i want to be able to 开发者_开发百科get some_param as URL parameter in index() when i call localhost/some_param, but also maintain calling localhost/say_hello as a function.


Check out the _remap() function:

http://codeigniter.com/user_guide/general/controllers.html#remapping

0

精彩评论

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