Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 1009 Bytes

install.md

File metadata and controls

43 lines (38 loc) · 1009 Bytes

Installation

Add BoekkooiJqueryValidationBundle by running the command:

composer require boekkooi/jquery-validation-bundle dev-master

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Boekkooi\Bundle\JqueryValidationBundle\BoekkooiJqueryValidationBundle(),
    );
}

Default configuration:

# app/config/config.yml
boekkooi_jquery_validation:
    form:
        enabled: true # Set to false to disable the form constraints being parsed/converted by default
        additionals: # Set to true if jquery validate additional-method.js is included
            accept: false
            ipv4: false
            ipv6: false
            iban: false
            luhn: false
            pattern: false
            time: false
            one_or_other: false
            required_group: false
    twig:
        enabled: true # Register the twig extension

Get started