One way is to extend the form helper and override the _domId() function: https://github.com/cakephp/cakephp/blob/09eb23891dc8134830f4e39e01a3a39f82935e41/src/View/Helper/IdGeneratorTrait.php
On Wednesday, May 20, 2015 at 1:39:35 PM UTC+2, gersonfs wrote: > > Hello! > > Is there a way to use the input id attribute from CakePHP 2 in CakePHP 3? > Like define a custom method for generate id attribute value? Or better yet, > use the FormHelper 2.x version of CakePHP. > > CakePHP 3 break all my javascript files based on id attribute. I did not > see any observations on this change in migration guide at the Form Helper > session. > > I use CakePHP since the 0.x version, over 200 projects done, and never an > update has been so problematic. I hope this does not happen in the next > major releases. > > I completely understand that our ORM was outdated and it needed an upgrade > facing OO. It's also great to have PHP 5.4 features. Although updates have > affected 99% of my code: models and forms/javascript. > > Thanks! > > -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
