Custom error messages in Silex
$form = $app['form.factory']
    ->createBuilder('form')
    ->add('email', 'text', array(
        'constraints' => new Assert\Email(array(
            'message' => 'Your custom message'
        ))
    ))Written by Kalle
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Php 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
 
