0

尝试进入 kohana 中的索引页面时,我不断收到此错误

Kohana_HTTP_Exception [ 404 ]:在此服务器上找不到请求的 URL localwebsite/admin。

SYSPATH\classes\Kohana\Request\Client\Internal.php [79]:

   if ( ! class_exists($prefix.$controller))
     {
      throw HTTP_Exception::factory(404,'The requested URL :uri was not found on this server.',
      array(':uri' => $request->uri()))->request($request);
     }
     // Load the controller using reflection
     $class = new ReflectionClass($prefix.$controller);

SYSPATH\classes\Kohana\Request\Client.php[114]:

    Kohana_Request_Client_Internal->execute_request(args)

SYSPATH\classes\Kohana\Request.php [990]:

Kohana_Request_Client->execute(arguments)

DOCROOT\index.php [118]:

Kohana_Request->execute() 
4

1 回答 1

-1

Kohana 是一个非常强大的框架,第一条规则是不要通过系统或模块文件夹!

你不应该把这样的问题归咎于框架,而是检查你的路线/开始一个新项目以找到问题。

留在应用程序文件夹中,因为一旦开始弄乱 /system 和 /modules 就无法升级 kohana :(

于 2013-08-05T00:07:44.637 回答