xlabs/popupbundle

Session notifications bundle

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Type:symfony-bundle

1.0.0 2017-11-15 11:22 UTC

This package is auto-updated.

Last update: 2024-12-20 11:15:12 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