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
-~----------~----~----~----~------~----~------~--~---