Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
113 lines (79 sloc) 2.47 KB


Step 1: Install BazingaExposeTranslationBundle

Please follow the steps given here to install this bundle.

Step 2: Download JsFormValidationBundle

a) Using Composer (recommended)

To install APYJsFormValidationBundle with Composer just add the following to your composer.json file:

// composer.json
    // ...
    require: {
        // ...

Note: dev-master version of this bundle is compatible only with symfony 2.1.x. Please use the deps file if you install this bundle for Symfony 2.0.x.

Then, you can install the new dependencies by running Composer's update command from the directory where your composer.json file is located:

php composer.phar update

Now, Composer will automatically download all required files, and install them for you. Let's go to step 3.

b) Using deps (Symfony 2.0.x)

Ultimately, the JsFormValidationBundle files should be downloaded to the vendor/bundles/APY/JsFormValidationBundle directory.

This can be done in several ways, depending on your preference. The first method is the standard Symfony2 method.

Using the vendors script

Add the following lines in your deps file:


Now, run the vendors script to download the bundle:

$ php bin/vendors install

Using submodules

If you prefer instead to use git submodules, the run the following:

$ git submodule add git:// vendor/bundles/APY/JsFormValidationBundle
$ git submodule update --init

Configure the Autoloader

Add the APY namespace to your autoloader:

// app/autoload.php

    // ...
    'APY' => __DIR__.'/../vendor/bundles',

Step 3: Enable the bundles

Enable the bundles in the kernel:

// app/AppKernel.php

public function registerBundles()
    $bundles = array(
        // ...
        new APY\JsFormValidationBundle\APYJsFormValidationBundle(),

Step 4: Import the routes

Finally, register the routing in app/config/routing.yml:

# app/config/routing.yml
    resource: "@APYJsFormValidationBundle/Resources/config/routing/routing.yml"