Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/289.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 _重新映射函数以重定向到不同的url_Php_Codeigniter - Fatal编程技术网

Php _重新映射函数以重定向到不同的url

Php _重新映射函数以重定向到不同的url,php,codeigniter,Php,Codeigniter,我喜欢我的routes.php I have the following routing to redirect to url: $route['AccountTest/test'] = "Account/test"; $route['SalaryTest/test'] = salary/test"; 如何实现_remap()codeigniter函数来实现相同的功能,而不是使用routes.php $route['test1] = 'test1/contact; $rou

我喜欢我的routes.php

I have the following routing to redirect to url:
$route['AccountTest/test']      = "Account/test";
$route['SalaryTest/test']      = salary/test";

如何实现_remap()codeigniter函数来实现相同的功能,而不是使用routes.php

$route['test1] = 'test1/contact;
$route['test2'] = 'test1/contact;

请参见

您可以使用route.php文件进行此操作

$route['test1] = 'test1/contact;
$route['test2'] = 'test1/contact;
请参见

是否可以使用_remap()通过将url作为参数传递来实现此目的?是否可以使用_remap()通过将url作为参数传递来实现此目的?