Last Updated: February 25, 2016
·
461
· 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'
        ))
    ))