I have created module ( test ) having following structure within control panel application:
- config 开发者_如何学C
- actions ( contains generator.yml)
- templates
I have used admin generator to generate the control panel. How can I add validation to the form displayed in control panel?
you will have to setup the validation inside the configure method of your form.
read more about here: http://www.symfony-project.org/forms/1_2/en/02-Form-Validation
you will find all forms in /lib/form/
精彩评论