dev-master
9999999-dev http://www.fancyapps.com/fancybox/jQuery FancyBox Bundle for Symfony2
MIT GPLv2
The Requires
- php >=5.3.0
The Development Requires
jquery javascript symfony fancybox
jQuery FancyBox Bundle for Symfony2
fancyBox 2.1.4, (*1)
``` js // composer.json, (*2)
{ "require": { // ... "RomanGorbatko/fancybox-bundle": "*" } }, (*3)
### Add bundle to your application kernel ``` php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new RomanGorbatko\FancyBoxBundle\RomanGorbatkoFancyBoxBundle(), // ... ); }
``` bash $ php composer.phar update RomanGorbatko/fancybox-bundle, (*4)
### Install assets Given your server's public directory is named "web", install the public vendor resources ``` bash $ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources, (*5)
``` bash $ php app/console assets:install --symlink web, (*6)
## Usage Refer to the desired files in your HTML template, e.g. ``` html <script type="text/javascript" src="{{ asset('bundles/RomanGorbatkofancybox/js/fancybox/source/jquery.fancybox.pack.js') }}"></script>
Refer to the source code of the included files for license information, (*7)
jQuery FancyBox Bundle for Symfony2
MIT GPLv2
jquery javascript symfony fancybox