_remap函数重定向到不同的URL

时间:2018-10-05 09:52:35

标签: 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函数而不是使用route.php来实现相同功能

1 个答案:

答案 0 :(得分:2)

您可以为此使用route.php文件。

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

请参见https://www.codeigniter.com/userguide3/general/routing.html