gpt4 book ai didi

php - Kohana 框架 : 'HTTP_Exception_404 [ 404 ]: The requested URL welcome/index was not found on this server.'

转载 作者:可可西里 更新时间:2023-11-01 00:36:33 26 4
gpt4 key购买 nike

I followed this tutorial只有一个区别。我没有将它命名为 hello.php,而是将其命名为 welcome.php。我的文件源与教程的源相同,并且它们位于正确的路径中。什么可能导致这种情况?

我根据教程使用“kohana/index.php/welcome”引用它。

最佳答案

您必须将 Controller 的名称更改为 Welcome 而不是 Hello

Class Controller_Welcome extends Controller {
public function action_index()
{
echo 'hello, world!';
}
}

我猜你忘了更改 Controller 名称?

关于php - Kohana 框架 : 'HTTP_Exception_404 [ 404 ]: The requested URL welcome/index was not found on this server.' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6243813/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com