Baking by its very nature creates new templated versions of controllers/models/views, so your alterations will be lost. A couple of possible workarounds: Copy any specific changes into a temporary file and then merge back after baking Move specific chunks of code into a component/behaviour/helper so they persist after baking Alter the templates that are used in the baking process so the standard code meets your needs (http://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html#modify-default-html-produced-by-baked-templates). Of course, any new controllers/models/views will now match your new templates.
Jeremy Burns Class Outfit http://www.classoutfit.com On 14 Dec 2012, at 05:50:17, KULJEET SINGH <[email protected]> wrote: > 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.. > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
