“找不到与 URI 匹配的路由:xxxxx/index.php”

"Unable to find a route to match the URI: xxxxx/index.php"

提问人:user3822492 提问时间:7/21/2020 更新时间:7/5/2021 访问量:159

问:

我正在尝试在localhost中使用一个旧项目,它基于kohana 3.1.1.1

当我尝试输入索引.php时,我得到: “找不到与 URI 匹配的路由:[项目名称]/index.php”

我是一个使用框架的菜鸟,但我知道 PHP。有没有办法解决它?

谢谢大家。

php kohana kohana-3

评论


答:

0赞 bato3 7/5/2021 #1

您需要对 2 个文件进行更改:

Kohana::init(array(
    'base_url' => '/kohana/',
    'index_file' => false,
));