Cakephp 2.1 naming convensions issue in version change

强颜欢笑 提交于 2019-12-02 13:25:22

you can always use explicit paths:

/path/to/app_dir>..\lib\Cake\Console\cake bake

from your APP dir of the current cake project. this is foolprove and always works with the right cake version.

I do it this way and use a shortcut on my keyboard to print this (up to "cake") on a single key stroke.

The reason for the change is to be able to better autoload files based on their kind (using App::uses('User', 'Model'); and later , when namespaces are introduced (3.0?) they can be loaded a lot more easy because you will call a class then like for example: "new \Cake\Model\User();"

About your bake problem: Make sure your environment is pointing to the correct "cake" shell file. I'm pretty sure yours is still pointing to the old 1.3 "cake" shell.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!