sfk / nivo-slider-bundle
jQuery Nivo Slider plugin integration for symfony.
Installs: 67
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:symfony-bundle
Requires
- symfony/framework-bundle: >=2.0,<2.3-dev
This package is not auto-updated.
Last update: 2024-11-09 13:38:29 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