ipu2vq
Last Updated: February 25, 2016
·
296
· kpyorala

Custom error messages in Silex

$form = $app['form.factory']
    ->createBuilder('form')
    ->add('email', 'text', array(
        'constraints' => new Assert\Email(array(
            'message' => 'Your custom message'
        ))
    ))