Re: Migrate from Cake 2.x
Thanks Mark! I believe it is very useful to add this functionality to the plugin. Em segunda-feira, 25 de maio de 2015 05:37:51 UTC-3, euromark escreveu: > > Let me know what you came up with > We should add this to the https://github.com/dereuromark/cakephp-shim > plugin to ease migration of those forms from 2.x to 3.x in general. > The IDs generated in 3.x are too collision-likely for me too. > > Mark > > > Am Mittwoch, 20. Mai 2015 13:39:35 UTC+2 schrieb gersonfs: >> >> 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 cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Migrate from Cake 2.x
Thanks José, compliments of OO! Em quarta-feira, 20 de maio de 2015 17:24:25 UTC-3, José Lorenzo escreveu: > > 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 cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Migrate from Cake 2.x
Let me know what you came up with We should add this to the https://github.com/dereuromark/cakephp-shim plugin to ease migration of those forms from 2.x to 3.x in general. The IDs generated in 3.x are too collision-likely for me too. Mark Am Mittwoch, 20. Mai 2015 13:39:35 UTC+2 schrieb gersonfs: > > 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 cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Migrate from Cake 2.x
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 cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Migrate from Cake 2.x
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 cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.