Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在Codeigniter中使用任何不可用的函数名作为index()get参数?_Php_Model View Controller_Url_Codeigniter_Mod Rewrite - Fatal编程技术网

Php 如何在Codeigniter中使用任何不可用的函数名作为index()get参数?

Php 如何在Codeigniter中使用任何不可用的函数名作为index()get参数?,php,model-view-controller,url,codeigniter,mod-rewrite,Php,Model View Controller,Url,Codeigniter,Mod Rewrite,在codeigniter中,如何自动将任何不可用的函数名作为index()的URL参数?例子。如果我的控制器中有index()和say_hello(),我希望在调用localhost/some_param时,能够在index()中获取some_param作为URL参数,但同时保持调用localhost/say_hello作为一个函数。查看_remap()函数:

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

查看_remap()函数: