Django - I'm a little rusty with. From what I understand, validators are in two places - the model and the forms. A form can optionally base and extend its validation on a model. Both use the same validator syntax (based on the Field class). See: http://www.djangoproject.com/documentation/model-api/ and http://www.djangoproject.com/documentation/forms/. Sf 1.1 forms share a lot of the same ideas as django forms.
RoR - validation is performed solely by the model. AFAIK, there is no concept of a form object. See http://wiki.rubyonrails.org/rails/pages/UnderstandingValidation . On Aug 29, 2008, at 4:27 PM, Leon (sfExtjsThemePlugin) wrote: > > I totally agree with you Jonathan. > > Being able to validate AND also check credentials would be much > better. These things should be done at model-level to prevent errors > and security risks. > > I understood from Fabien that one of the problems is the fact that > this is ORM-depended, but I think we can get around that by defining > these credentials and validation-rules with another generator, maybe > an extension to the schema.yml? > > Jacob, could you summarise how this is done in Django and RoR (or give > urls with examples). At the moment I am still very much Symfony- > minded.... I do look at other frameworks from time to time, but it is > hard to keep up with all of them when having to meet deadlines... Is > there maybe an up-to-date comparison between the popular frameworks? > Especially to compare features and how things are done, not so much > about performance. Performance is irrelevant in my opinion, most > important is how good the tools are, and Symfony suited my > requirements very nice at the time I started my project. > > -- Jacob Coby [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
