Mot-clé - form
Symfony: Validate fields depending of
mercredi, février 3 2010, 14:03 :: Coding
It's possible, when validating a form, to check if a field is correct dependently of an other field's value. First, in your configure method, after the declaration of your validators, add :... lire la suite
[Symfony] Overwrite a value in a form
lundi, novembre 30 2009, 13:41 :: Coding
It happen sometimes that you have to set/override a value within a form but without using a hidden field (that can be overridden) Here is a short solution to set the user id in the object we are going to save. Let's say... lire la suite