sokil / promo-bundle
Promo
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: ^5.5 || ^7.0
Requires (Dev)
- doctrine/orm: ^2.0
- phpunit/phpunit: >=3.7.38 <6.0
- satooshi/php-coveralls: >=0.7.1 <2.0
- sensio/framework-extra-bundle: ~2.3|^3.0
- squizlabs/php_codesniffer: ^2.3
- symfony/framework-bundle: ~2.3|~3.0
- symfony/templating: ~2.3|^3.0
This package is auto-updated.
Last update: 2023-03-27 22:50:42 UTC
README
Installation
Add composer dependency:
composer.phar require sokil/promo-bundle
Add bundle to your AppKernel
:
<?php class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Sokil\PromoBundle\PromoBundle(), ); } }
Configure routes in app/config/routing.yml
:
# show landing page landing_index: path: / defaults: _controller: PromoBundle:Landing:index methods: [GET] # track exit and redirect to external url landing_away: path: /away defaults: _controller: PromoBundle:Landing:away methods: [GET]
Away action
Away action used to redirect to some url from promo page.
First add configuration to bundle:
promo: away: allowed: true # allow redirect to external urls domainWhiteList: # if specified, allow redirect only to specified domains - http://example.com track: true # allow track of away campainn (default: false)
Tracking
Engine may be doctrine_orm
or blackhole
.
promo: tracking: engine: doctrine_orm # engine to store tracking data