Cakephp 2.1版本更改中的命名转换问题 [英] Cakephp 2.1 naming convensions issue in version change

查看:122
本文介绍了Cakephp 2.1版本更改中的命名转换问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了CakePHP 2.1。

I have just installed CakePHP 2.1. And just see that the naming convention of its is just change lot from the older version which making me crazy.

像是 app / controllers

Like it was app/controllers while now it is app/Controller same way

/ models - app / Model

- app / View

我知道必须有一些优势。但我的问题是当我使用蛋糕烘烤它创建目录以相同的旧时尚,< controllers / models / views 。其中不能从URL&显然会抛出一个错误。

I know there must be some advantage on doing this. But my problem is when I use the cake bake it is creating directory in the same old fashion i.e. controllers/models/views. Which is no more accessible from the URL & obviously will throw an error.

任何人都有面对同样的问题吗?有什么解决方案,蛋糕烘焙也使用相同的约定?

Is anyone there who has face the same issue ? Is there any solution that cake bake also use the same conventions ?

任何帮助将不胜感激。感谢。

Any help will be appreciate. Thanks.

推荐答案

您可以随时使用显式路径:

you can always use explicit paths:

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

从当前蛋糕项目的APP目录。
这是foolprove,总是适合正确的蛋糕版本。

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.

这篇关于Cakephp 2.1版本更改中的命名转换问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆