Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 776 Bytes

install.md

File metadata and controls

34 lines (29 loc) · 776 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: false # Set to true if jquery validate additional-method.js is included
    twig:
        enabled: true # Register the twig extension

Get started