2017 © Pedro Peláez
 

symfony-bundle banner-bundle

A simple banner manager Symfony2

image

wucdbm/banner-bundle

A simple banner manager Symfony2

  • Tuesday, December 5, 2017
  • by wucdbm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

banner-bundle

Usage

Having properly configured uglifycss and uglifyjs is a requirement for production., (*1)

Add this bundle to your AppKernel.php new \Wucdbm\Bundle\BannerBundle\WucdbmBannerBundle(), (*2)

In your config.yml, add WucdbmBannerBundle to your assetic bundles, as well as your doctrine mapping (if not automatic), (*3)

Execute app/console doctrine:schema:update --dump-sql and after verifying what is being executed, execute again with --force. Alternatively, use doctrine migrations via the DoctrineMigrations bundle., (*4)

Once this has been done, you can start using the bundle. Simply register it in your routing.yml in a protected area such as admin, like so:, (*5)

wucdbm_banner:
    resource: "@WucdbmBannerBundle/Resources/config/routing.yml"
    prefix: /banners

You can create a link to the builder using {{ path('wucdbm_banner_dashboard') }}, or embed it into your admin UI via an iframe like so <iframe src="{{ path('wucdbm_banner_dashboard') }}" style="border: 0; width: 100%; height: 100%;"></iframe>, (*6)

The User Interface is pretty self-explanatory. You create banners and positions. Banners contain the JavaScript or HTML code. This can also be used for tracking or anything external you would like to add to your website via a UI in your admin section without thinking too much about its implementation. Positions are placed in your code on your pages, like this {{ 'YourPositionName'|banner }} (There is also a twig function) You can also print a link to the same page you're at, but with positions in debug mode, but only if your user has the ROLE_ADMIN role using {{ showBannerPositionsUrl() }} If a position is lacking a banner, is inactive, the banner is inactive, or any other error, if you have ROLE_ADMIN, you will get an error message, (*7)

Caching

If you need cache: Alias your own Psr\Cache\CacheItemPoolInterface to wucdbm_banner.cache, for example:, (*8)

<service id="wucdbm_banner.cache" alias="app.cache" /> where the app.cache service is an instance of Psr\Cache\CacheItemPoolInterface, (*9)

The Versions

05/12 2017

dev-master

9999999-dev

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Martin Kirilov

wucdbm

05/12 2017

v3.4.2

3.4.2.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Martin Kirilov

wucdbm

05/12 2017

v3.4.0

3.4.0.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Martin Kirilov

wucdbm

05/12 2017

v3.4.1

3.4.1.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Martin Kirilov

wucdbm

24/07 2016

v3.0.7

3.0.7.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

wucdbm

15/03 2016

v3.0.6

3.0.6.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

wucdbm

27/12 2015

v3.0.5

3.0.5.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

wucdbm

26/12 2015

v3.0.4

3.0.4.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

wucdbm

25/12 2015

v3.0.3

3.0.3.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

wucdbm

25/12 2015

v3.0.2

3.0.2.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

wucdbm

25/12 2015

v3.0.1

3.0.1.0

A simple banner manager Symfony2

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

wucdbm