2013-04-24 128 views
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() 
+3

你建立了什麼路線?是'base_url'設置是否正確?搞亂 – kero 2013-04-24 15:44:57

+1

您可以添加'var_dump($ prefix。$ controller)'緊跟在'if(!class_exists($ prefix。$ controller))'子句之後,看看Kohana需要哪個控制器文件。 – 2013-04-28 10:53:24

回答

-1

Kohana是一個非常強大的框架,頭號規則是不通過系統或模塊文件夾!

你不應該在框架上責怪這樣的問題,而是檢查你的路線/開始一個新的項目,以找到問題的方式。

停留在應用程序文件夾,因爲一旦你開始/系統/模塊不能升級的Kohana :(