如何在Codeigniter中将任何不可用的函数名作为index()获取参数


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

在codeigniter中,如何自动将任何不可用的函数名作为index()的URL参数?的例子。如果我在我的控制器中有index()say_hello(),我希望能够在index()中获得some_param作为URL参数,当我调用localhost/some_param时,但也保持调用localhost/say_hello作为函数。

查看_remap()函数:

http://codeigniter.com/user_guide/general/controllers.html重新映射