sfk/nivo-slider-bundle

jQuery Nivo Slider plugin integration for symfony.

Installs: 66

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

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

This package is not auto-updated.

Last update: 2024-04-13 10:59:59 UTC


README

Installation

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>

License

Refer to the source code of the included files