jQuery Nivo Slider plugin integration for symfony.

Installs: 58

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language: JavaScript

Type: symfony-bundle

v0.2.0 2013-03-18 10:07 UTC



Add bundle via composer (Symfony 2.1)

php composer.phar require sfk/nivo-slider-bundle:dev-master

Register bundle in your application kernel

// app/AppKernel.php
public function registerBundles() 
    $bundles = array(
        // ...
        new Sfk\NivoSliderBundle\SfkNivoSliderBundle(),

Install assets and clear cache

php app/console assets:install --symlink target/
php app/console cache:clear

Include theme css file

<link rel="stylesheet" href="{{ asset('bundles/sfknivoslider/nivo-slider/themes/default/default.css') }}" type="text/css" media="screen" />
Include slider javascript file

NOTE You must have jquery library included

<script type="text/javascript" src="/a path to jquery"></script>
<script type="text/javascript" src="{{ asset('bundles/sfknivoslider/nivo-slider/jquery.nivo.slider.pack.js') }}"></script>


Refer to the source code of the included files