1

我一直在工作中使用 CakePHP,现在我正在尝试在家里进行设置。我在 htdocs 中有一个项目文件夹,在该文件夹中我有我的 cakeProject .../htdocs/Projects/CakeProject/app...。当我将 url 指向 localhost/Projects/cakeProject/ 时,我收到此错误。

缺少控制器

错误:找不到 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) {

}
4

2 回答 2

1

I am not sure what the problem was. I must have set something up wrong during installation. I deleted the Project from the Projects folder. Recloned it and it is working properly now.

于 2012-11-03T16:17:31.087 回答
0

你的 webroot 文件夹在哪里?在执行任何操作之前,您必须配置 webroot。

我不知道您使用的是哪个操作系统,但 google 上关于此主题的第三个结果是windows 中 xamp的详细指南。也许它可以帮助你

于 2012-11-03T15:29:25.590 回答