Search code examples
phpcakephpcrudscaffolding

How can I alter the scaffolding code and also localize my application using Hebrew in CakePHP?


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?


Solution

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

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