I have baked a project in cakephp. I have done custom modification in the controller, when I bake the code again those changes are lost.
Is there any way to keep those changes?
I am new in cakephp please help..
I have baked a project in cakephp. I have done custom modification in the
Share
No, if you keep the files in the app directory you will loose those changes because the Bake Console will override them.
What can you do then? Well you could:
bake inside a new app (just connect to the same DB) and then merge the changes with your existing Controllers. For merging you could use Diffuse – a very nice and small footprint merge editor which works on almost all OSs (Linux, Mac OS, BSD and Windows).
back up your existing application and bake over it. Then merge the changes you’ve done back to the application.
It should be better to use method 1. if your changes are more code than the parts that you wish to bake.
This could be a nice add-on to the existing console’s functionality. Maybe via a diff from the original baked version and the current changed one. However I am not sure if this is needed, since the idea is to initially bake and then develop.