2017 © Pedro Peláez
 

symfony-bundle jsfv-bundle

Symfony2 Javascript Form Validation Bundle with localisation support

image

apy/jsfv-bundle

Symfony2 Javascript Form Validation Bundle with localisation support

  • Wednesday, February 26, 2014
  • by Abhoryo
  • Repository
  • 13 Watchers
  • 93 Stars
  • 759,440 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 28 Forks
  • 7 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

This Bundle is no longer maintained.

Over the years, the structure of Symfony forms has evolved and this bundle has tried to follow its evolution without changing its own structure. However, this old structure is not adapted to new versions of Symfony.
Instead of starting from scratch and generate code similar to another Bundle, I'd rather advise you to use this other Bundle., (*1)

fp/jsformvalidator-bundle, (*2)

Changes to use this Bundle are really fast to apply., (*3)

It was a real pleasure to offer this kind of bundle for early versions of Symfony., (*4)




Getting Started With JsFormValidationBundle

Version: 2.1 Build Status, (*5)

Compatibility: Symfony >=2.1, <2.4., (*6)

This bundle generate automatically a script to perform validations of a form in javascript., (*7)

It use the same constraints defined with annotations in your entity or your document., (*8)

This bundle is g11n compatible.(i18n + L10n), (*9)

Prerequisite

Installation

Please follow the steps given here to install this bundle., (*10)

Usage

This bundle is really easy to use. All you need is to call a twig function in your template., (*11)

{{ JSFV(form) }}, (*12)

Template of a simple form:, (*13)

<!-- MyProjectMyBundle:Default:index.html.twig -->

<!-- Include prerequisite librairies and bundles -->
<script type="text/javascript" src="__YOUR_FRAMEWORK_URL__"></script>
<script type="text/javascript" src="{{ asset('bundles/bazingaexposetranslation/js/translator.min.js') }}"></script>
<script type="text/javascript" src="{{ url('bazinga_exposetranslation_js', { 'domain_name': 'validators' }) }}"></script>

<!-- Call JsFormValidationBundle -->
{{ JSFV(form) }}

<!-- Display the form -->
<form action="{{ path('myform') }}" method="post" {{ form_enctype(form) }}>
    {{ form_widget(form) }}
    <input type="submit" />
</form>

See a full simple example here., (*14)

The following documents are available:, (*15)

TODO

  • Script all possible constraints
  • Manage php, yml and xml defined constraints

The Versions

20/01 2013

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/Abhoryo/APYJsFormValidationBundle

Symfony2 Javascript Form Validation Bundle with localisation support

  Sources   Download

The Requires

 

by Yoann Petit

form validation javascript symfony i18n l10n g11n

04/08 2012

v2.0

2.0.0.0 https://github.com/Abhoryo/APYJsFormValidationBundle

Symfony2 Javascript Form Validation Bundle with localisation support

  Sources   Download

The Requires

 

by Yoann Petit

form validation javascript symfony i18n l10n g11n