File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22[ ![ Build Status] ( https://travis-ci.org/formapro/JsFormValidatorBundle.svg?branch=master )] ( https://travis-ci.org/formapro/JsFormValidatorBundle )
33[ ![ Total Downloads] ( https://poser.pugx.org/fp/jsformvalidator-bundle/downloads.png )] ( https://packagist.org/packages/fp/jsformvalidator-bundle )
44
5- This module enables validation of the 3.0+ forms on the JavaScript side.
5+ This module enables validation of the Symfony 3 forms on the JavaScript side.
66It converts form type constraints into JavaScript validation rules.
77
88If you have Symfony 2.8.* or 2.7.* - you need to use [ Version 1.3.* ] ( https://github.com/formapro/JsFormValidatorBundle/tree/1.3 )
99If you have Symfony 2.6.* or less - you need to use [ Version 1.2.* ] ( https://github.com/formapro/JsFormValidatorBundle/tree/1.2 )
1010
1111## 1 Installation<a name =" p_1 " ></a >
1212
13- [ Upgrade from the previous version] ( https://github.com/formapro/JsFormValidatorBundle/blob/master/UPGRADE-1.1.md )
14-
1513### 1.1 Download FpJsFormValidatorBundle using composer<a name =" p_1_1 " ></a >
1614
1715Run in terminal:
1816``` bash
1917$ php composer.phar require " fp/jsformvalidator-bundle" :" dev-master"
2018```
19+ Or if you do not want to unexpected problems better to use exact version.
20+ ``` bash
21+ $ php composer.phar require " fp/jsformvalidator-bundle" :" v1.4.*"
22+ ```
2123### 1.2 Enable the bundle<a name =" p_1_2 " ></a >
2224
2325Enable the bundle:
@@ -48,9 +50,8 @@ public function registerBundles()
4850
4951### 1.4 Add routes<a name =" p_1_4 " ></a >
5052
51- If you use the UniqueEntity constraint, then you have to include the next part to your routing config:
53+ If you use the UniqueEntity constraint, then you have to include the next part to your routing config: app/config/routing.yml
5254``` yaml
53- //app/config/routing.yml
5455# ...
5556fp_js_form_validator :
5657 resource : " @FpJsFormValidatorBundle/Resources/config/routing.xml"
You can’t perform that action at this time.
0 commit comments