0
我一直試圖去索引頁中的Kohana得到一個404錯誤索引頁
Kohana_HTTP_Exception [404]當收到此錯誤:請求的URL localwebsite /管理員未找到onthis服務器。
SYSPATH \類\ Kohana的\請求\客戶端\ 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 \類\ Kohana的\請求\ Client.php [114]:
Kohana_Request_Client_Internal->execute_request(args)
SYSPATH \類\ Kohana的\ Request.php [990]:
Kohana_Request_Client->execute(arguments)
DOCROOT \的index.php [118 ]:
Kohana_Request->execute()
你建立了什麼路線?是'base_url'設置是否正確?搞亂 – kero 2013-04-24 15:44:57
您可以添加'var_dump($ prefix。$ controller)'緊跟在'if(!class_exists($ prefix。$ controller))'子句之後,看看Kohana需要哪個控制器文件。 – 2013-04-28 10:53:24