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