Answer the question
In order to leave comments, you need to log in
How to add a dynamic label in Symfony 1.4 when displaying a "required" error?
Welcome all!
In "ProjectConfiguration" you can override the text of the displayed errors, for example:
sfValidatorBase::setDefaultMessage('min_length', 'Минимум %min_length% знаков');<br>
sfValidatorBase::setDefaultMessage('required', 'Поле обязательно для заполнения');<br>
sfValidatorBase::setDefaultMessage('required', 'Поле%label% обязательно для заполнения');<br>
Answer the question
In order to leave comments, you need to log in
I see several options for solving the problem:
1. You can write your own, custom template for displaying the form field with entertainment establishments and female robots and render the fields through it.
2. You can define an error message within the class of the form itself.
3. You can write your own validator inherited from sfValidatorBase in which to register the necessary placeholders.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question