Some quick answers inline: joshua may wrote: > Drudging up a potentially old thread now..? > > But anyway, will the new forms/validation stuff obviate the need for > validator.yml files?
validate/*.yml are not needed anymore because all the validation stuff is managed by the validator schema of the form class. I've been toying a bit with the sfForm stuff > (trying to work backward from the unit tests), and it seems to very > much break the DRY style that I'm used to in symfony. I mean, it's not > *difficult*, but I'm finding a lot of copy/paste of 'new > sfStringValidator()' kind of deal (or whatever it is now - I haven't > got the code open). You must define the validation rules for each of your fields. I think it makes sense... and this was the same with the validate/*.yml stuff, so I don't see what is not DRY... By the way, there is still one missing piece, the sfFormPropel class, which will do the ground work for you if you want to create forms for your Propel objects. > > Or..should I just wait for the new docs? > > (As an aside, how to do I get sfForm to render with a submit button? > Or do I do that manually? Hrm. I'll just wait for docs, I guess..!) sfForm won't render a submit button for you, nor will it generates a <form> tag for you. Fabien > > Ta, > Josh > > On Nov 13, 4:25 am, Fabien POTENCIER <[EMAIL PROTECTED] > project.com> wrote: >> There is a missing piece... and this is the most important one, the >> sfForm class. >> >> This class will be the class most people will interact with to use forms >> /validation in the action and display the form in the template. >> >> Everything is pretty stable now, and I hope to be able to commit the >> thing this week. >> >> I will also post my slides later this week from the IPC Conference where >> I presented the new system. >> >> Fabien >> >> -- >> Fabien Potencier >> Sensio CEO - symfony lead >> developerhttp://www.sensiolabs.com/http://www.symfony-project.com/ >> Sensio Labs >> Tél: +33 1 40 99 80 80 >> >> Ian P. Christian wrote: >>> Matthias N. wrote: >>>> IMHO there is still something missing that integrates the widgets into >>>> the view layer.. respectively I have no idea how to use them in the >>>> templates. >>>> I guess Fabien is working on that integration!? >>> That woudl explain the lack of announcement! I've not had time to look >>> unfortunately... >>> Exciting times :) > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
