You have two possible ways of doing it:
- do not redirect user upon error and display
{{ form_errors(form) }}
within template file - access error array as
$form->getErrors()
More Related Contents:
- Count Rows in Doctrine QueryBuilder
- How to update a single library with Composer?
- How to check if an user is logged in Symfony2 inside a controller?
- How do I read configuration settings from Symfony2 config.yml?
- Why composer install timeouts after 300 seconds?
- How can I access a service outside of a controller with Symfony2?
- What is the new Symfony 3 directory structure?
- How can I run symfony 2 run command from controller
- passing data from controller to Type symfony2
- Symfony 2 : multiple and dynamic database connection
- Get current URL in Twig template?
- The EntityManager is closed
- In Symfony2, why is it a bad idea to inject the service container, rather than individual services?
- How to inject the @request into a service?
- FOS bundle – How to select users with a specific role?
- Symfony 2: Creating a service from a Repository
- The method name must start with either findBy or findOneBy. Undefined method Symfony?
- Call PHP function from Twig template
- Extends parent blocks from embed template
- How to convert this to Doctrine 2 QueryBuilder format?
- Build a form having a checkbox for each entity in a doctrine collection
- Twig: render vs include
- How do I get the user IP address in Symfony2 controller?
- How to get list of all routes of a controller in Symfony2?
- How to configure naming strategy in Doctrine 2
- Symfony2 error 500 instead of 404 at production
- Get entityManager inside an Entity
- Primary key of owning side as a join column
- How to add custom link or button to SonataAdminBundle Dashboard in Symfony2
- Symfony2 default locale in routing