我一直在使用CakePHP,現在我試圖在家中設置它。我有一個項目文件夾htdocs裏面,並在該文件夾我有我的cakeProject .../htdocs /項目/ CakeProject /應用程序....當我指向本地主機/項目/ cakeProject/url /我得到這個錯誤。使用XAMPP配置CakePHP
缺少控制器
錯誤:ProjectsController找不到....
而且它繼續解釋如何使一個控制器。顯然,這不是真正的問題。任何人都可以立即看到我忽略了什麼?
這裏是堆棧跟蹤: 堆棧跟蹤
APP\webroot\index.php line 92 → Dispatcher->dispatch(CakeRequest, CakeResponse)
App::uses('Dispatcher', 'Routing');
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'projects/cakeProject/'
base => '/projects/cakeProject/app/webroot/index.php'
webroot => '/projects/cakeProject/app/webroot/'
here => '/projects/cakeProject/app/webroot/index.php/projects/cakeProject/'
}
object(CakeResponse) {
}
我在Windows中。我遵循了類似的指導來設置。我不完全確定你的意思是通過配置我的webroot,順便說一下在htdocs/Projects/cakeProject/app中。我配置了core.php,database.php和routes.php –