如何更改脚手架代码并在 CakePHP 中使用希伯来语本地化我的应用程序?

发布于 2024-07-18 10:05:44 字数 354 浏览 2 评论 0原文

我已经开始学习如何使用 CakePHP 框架来做兼职工作。 我决定在这个框架中构建我的个人项目之一,以进行一些实践。

  1. 我有一些使用Cake Baker命令创建的模型,并且添加了自动CRUD支持(它添加到控制器var $scaffold以执行所有相关操作。 我想编辑这些操作,但没有对生成代码的引用。 (正如我之前所说,它将脚手架成员添加到控制器中,仅此而已。) 如何编辑这些操作?

  2. 我想用希伯来语构建我的应用程序,我需要将所有生成的错误消息和状态更改为希伯来语(以及脚手架中生成的错误消息和状态)。 我怎样才能做到这一点?

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.

  1. I have some models I created using Cake bake command and I added the automated CRUD support (It adds to the controller var $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?

  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤凫 2024-07-25 10:05:44
  1. 再次使用“蛋糕烘焙”来烘焙控制器和视图。

  2. 阅读http://book.cakephp.org/view/162/Localizing -您的应用程序

  1. Use "cake bake" again to bake your controller and views.

  2. Read http://book.cakephp.org/view/162/Localizing-Your-Application

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文