neverbland/njax-bundle

There is no license information available for the latest version (0.9.5) of this package.

NJAX - Navigation in AJAX. Integration with Symfony2.

Installs: 1 798

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 36

Forks: 1

Open Issues: 0

Language:JavaScript

0.9.5 2015-02-18 16:40 UTC

This package is not auto-updated.

Last update: 2024-04-13 10:29:23 UTC


README

NJAX - Navigation in AJAX. Integration with Symfony2.

Installation

Install using Composer.

$ composer require neverbland/njax-bundle dev-master

Then load the bundle in your application kernel:

public function registerBundles()
{
    $bundles = array(
        // ...
        new Neverbland\Bundle\NjaxBundle\NeverblandNjaxBundle()
    );
}

And in the end also include NJAX js file somewhere on your site:

<script type="text/javascript" src="/bundles/neverblandnjax/js/jquery.njax.js"></script>

You can also include jquery.njax.wdt.js in dev mode of your site in order to get updated Web Debug Toolbar on every NJAX load.

Using in JavaScript

For usage information refer to main NJAX repository: https://github.com/Neverbland/njax

Additional PHP features

TBD.

Contributing

You are welcome to submit pull requests.

Updating NJAX JavaScript library

In order to update jquery.njax.js file you should use Gulp. There is a gulpfile.js in the main dir of the repo which will do all the work for you.

To update the JS simply run gulp command:

$ gulp

It will pull latest version of NJAX from Bower and copy the JS plugin into Resources/public/js/jquery.njax.js.