如何更改脚手架代码并在 CakePHP 中使用希伯来语本地化我的应用程序?
我已经开始学习如何使用 CakePHP 框架来做兼职工作。 我决定在这个框架中构建我的个人项目之一,以进行一些实践。
我有一些使用
Cake Baker
命令创建的模型,并且添加了自动CRUD支持(它添加到控制器var $scaffold
以执行所有相关操作。 我想编辑这些操作,但没有对生成代码的引用。 (正如我之前所说,它将脚手架成员添加到控制器中,仅此而已。) 如何编辑这些操作?我想用希伯来语构建我的应用程序,我需要将所有生成的错误消息和状态更改为希伯来语(以及脚手架中生成的错误消息和状态)。 我怎样才能做到这一点?
I've started to learn how to use the CakePHP framework for a part time job. And I decided to build one of my personal projects in this framework to get some practice on it.
I have some models I created using
Cake bake
command and I added the automated CRUD support (It adds to the controllervar $scaffold
for the all relevant actions.
I want to edit these actions but I dont have a reference to the generated code. (As I said earlier, it adds the scaffolding member to the controller and that's it.)
How can I edit these actions?I want to build my application in Hebrew, I need to change all the generated error messages and status to Hebrew (Also the ones generated in the scaffolding). How can I accomplish that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
再次使用“蛋糕烘焙”来烘焙控制器和视图。
阅读http://book.cakephp.org/view/162/Localizing -您的应用程序
Use "cake bake" again to bake your controller and views.
Read http://book.cakephp.org/view/162/Localizing-Your-Application