我安装了CakePHP,但缺少一些文件夹

时间:2016-01-12 21:02:31

标签: cakephp directory-structure cakephp-2.x cakephp-3.x

我刚使用composer在我的Windows机器上安装了CakePHP。

安装后我的文件夹:

bin
config
logs
plugins
src
tests
tmp
vendor
webroot

然后我查看了#34;博客教程"在CakePHP Cookbook上,注意到我没有名为applib的文件夹。

他们去哪儿了?或者我在安装过程中做错了什么?

1 个答案:

答案 0 :(得分:1)

我相信你正在混合CakePHP版本。

这是CakePHP 2.x文件夹结构:

/path_to_document_root
    /app
    /lib
    /plugins
    /vendors

这就是CakePHP 3.x:

/cake_install
    /bin
    /config
    /logs
    /plugins
    /src
    /tests
    /tmp
    /vendor
    /webroot

确保您关注的是CakePHP 3.x Blog Tutorial,而不是CakePHP 2.x。