Yes, but the following sentence is pretty confusing:

"For compatibility reasons and because the admin generator feature
still uses this system,
this information is also valuable for symfony 1.2"

(the mean truth is that the admin generator is not using this system
anymore)

On Aug 21, 12:56 pm, Gábor Fási <[email protected]> wrote:
> At the very top of the page there's a warning, first line: "This
> chapter describes the way forms were implemented in symfony 1.0."
>
> On Fri, Aug 21, 2009 at 10:24, gino pilotino<[email protected]> wrote:
>
> > It's not that obvious for a new user as in "The Definitive Guide to
> > symfony" for the 1.2 version"
> > here:http://www.symfony-project.org/book/1_2/10-Forms (under
> > "Validation File" section)
> > there's no reference to the fact that it's a 1.0 feature and that you
> > must activate the plugin.
>
> > -d
>
> > On Aug 20, 11:04 am, Gábor Fási <[email protected]> wrote:
> >> Validation with yml files is a symfony 1.0 feature, the 1.2 version
> >> has the form framework to do the same stuff, it is kinda obvious that
> >> you need to enable the 1.0 compatibility plugin for this feature to
> >> work.
>
> >> On Thu, Aug 20, 2009 at 11:00, gino pilotino<[email protected]> wrote:
>
> >> > I had a similar problem.
>
> >> > The *real* problem is the fact that this "little" thing
> >> > is not mentioned anywhere in the documentation:
>
> >> > if you're using symfony 1.2 you MUST activate sfCompat10Plugin
> >> > to use form validation with yaml files.
>
> >> > in config/ProjectConfiguration.class.php:
>
> >> > $this->enableAllPluginsExcept(array('sfPropelPlugin'));
>
> >> > Anywhere this method will be deprecated in the 1.3 release so
> >> > I'd rather avoid it.
>
> >> > -d.
>
> >> > On Aug 19, 4:56 pm, Stefano <[email protected]> wrote:
> >> >> I generate an application using:
>
> >> >>     symfony propel:generate-admin frontend --module=ditta
> >> >>     symfony propel:generate-admin frontend --module=yyyy
> >> >>     ....
>
> >> >> then, to validate the form ditta I put, in apps/frontend/modules/ditta/
> >> >> validate/edit.yml:
>
> >> >> methods:
> >> >>   post:
> >> >>     - "ditta{CodFiscale}"
>
> >> >> names:
> >> >>   ditta{CodFiscale}:
> >> >>     required: Yes
> >> >>     required_msg: Campo obbligatorio.
>
> >> >> fillin:
> >> >>   activate: on
>
> >> >> but when I save the data, leaving empty CodFiscale, nothing appens.
>
> >> >> I added garblish at then end of apps/frontend/modules/ditta/validate/
> >> >> edit.yml to have symfony throw an error while parsing the file, but
> >> >> nothing!
>
> >> >> So it looks like the file edit.yml is not read at all.
>
> >> >> I'm sure I'm making some silly error, but I can not find it out.
>
> >> >> Any hints?
>
> >> >> TIA
>
> >> >> Stefano
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to