2016-11-25 38 views
0

我有一個CakePHP的項目放在無功/ www/html等/管理/4o4在CakePHP的控制器未發現

管理文件夾包含(在LS)

CONTRIBUTING.md app    build.xml  email  index.php plugins 
README.md  build.properties composer.json email.zip lib  vendors 

當我做http://domain/manage/

它給我錯誤,這是好的

!DOCTYPE html> 
<html> 
    <head> 
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
     <title> 
     CakePHP: the rapid development php framework: 
     Errors </title> 
     <link href="/manage/favicon.ico" type="image/x-icon" rel="icon" /> 
     <link href="/manage/favicon.ico" type="image/x-icon" rel="shortcut icon" /> 
     <link rel="stylesheet" type="text/css" href="/manage/css/cake.generic.css" /> 
    </head> 
    <body> 
     <div id="container"> 
      <div id="header"> 
       <h1> 
        <a href="http://cakephp.org">CakePHP: the rapid development php framework</a> 
       </h1> 
      </div> 
      <div id="content"> 
       <h2>Missing Controller</h2> 
       <p class="error"> 
        <strong>Error: </strong> 
        <em>Controller</em> could not be found. 
       </p> 
       <p class="error"> 
        <strong>Error: </strong> 
    Create the class 
        <em>Controller</em> below in file: app/Controller/Controller.php 
       </p> 
       <pre> 
&lt;?php 
class Controller extends AppController { 

我有一個控制器放在應用程序/ Controlle R/

然而,當我嘗試做

http://domain/manage/users/registerAccount 

它給了我404未找到錯誤。

我缺少什麼

+0

應該有一個更詳細的錯誤輸出。另外,如果給404,你的debug可能會在app.php中設置爲false。奧雷塞斯,你會得到一個更詳細的錯誤。如果你有一個帶有registerAccount方法的UsersController,默認的URL將是users/register-account – Tolga

+0

@Tolga的URL是正確的,我複製了代碼 –

+0

你是什麼意思這是正確的?如果你沒有爲http:// domain/manage/users/registerAccount設置upa自定義路由,那麼它是不正確的 – Tolga

回答