在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重新映射