xlabs / popupbundle
Session notifications bundle
1.0.0
2017-11-15 11:22 UTC
Requires
- php: >=5.3.9
- predis/predis: ^1.1
- twig/twig: ~1.34|~2.4
Requires (Dev)
- symfony/asset: ~2.7|~3.0.0
- symfony/http-kernel: ~2.8|~3.0.0
- symfony/routing: ~2.2|~3.0.0
- symfony/templating: ~2.1|~3.0.0
- symfony/var-dumper: ~2.7.16|~2.8.9|~3.0.9
- symfony/yaml: ^2.0.5|~3.0.0
This package is auto-updated.
Last update: 2024-11-20 10:59:56 UTC
README
Session popup user notifications.
Installation
Install through composer:
php -d memory_limit=-1 composer.phar require xlabs/popupbundle
In your AppKernel
public function registerbundles()
{
return [
...
...
new XLabs\PopupBundle\XLabsPopupBundle(),
];
}
Routing
Append to main routing file:
# app/config/routing.yml
xlabs_popup:
resource: "@XLabsPopupBundle/Resources/config/routing.yml"
prefix: /
Usage
Append this at the very beginning of your body tag:
{% include 'XLabsPopupBundle:Popup:loader.html.twig' %}
To see a sample template, check:
XLabsPopupBundle:Popup:example.html.twig