project landing-tracking-bundle
Allows you to track visits to your site or landing page
keltanas/landing-tracking-bundle
Allows you to track visits to your site or landing page
- Wednesday, October 8, 2014
- by keltanas
- Repository
- 1 Watchers
- 0 Stars
- 29 Installations
- JavaScript
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Keltanas Tracking Bundle
Instalation
-
Add "keltanas/landing-tracking-bundle": "1.0.*@dev"
to your composer.json
, (*1)
-
Add bundle to app/AppKernel.php
, (*2)
php
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
new keltanas\Bundle\TrackingBundle\keltanasTrackingBundle(),
, (*3)
-
Add to app/config/config.yml
, (*4)
php
keltanas_tracking:
email_from: "%mailer_user%"
email_to: "%mailer_user%"
, (*5)
-
Add to app/config/routing.yml
, (*6)
yml
keltanas_tracking:
resource: "@keltanasTrackingBundle/Resources/config/routing.yml"
prefix: /tracking
, (*7)
-
Perform php composer update
, (*8)
-
Redefine base.html.twig
as app/Resources/keltanasTrackingBundle/views/base.html.twig
, (*9)
-
Perform app/console doctrine:schema:update --force
or create migration, (*10)
Rendering
``` twig
{{ render(controller("keltanasTrackingBundle:Form:serve", {'name': 'callback'})) }}
```
'callback' - it is creating form name
``` php
public function mainMenu(FactoryInterface $factory, array $options)
{
$menu = $factory->createItem('root');
$menu->addChild('Tracking', ['route'=>'keltanas_tracking_homepage']);
$menu->addChild('Forms', ['route'=>'keltanas_tracking_form']);
$menu->addChild('Rfq', ['route'=>'keltanas_tracking_rfq']);
return $menu;
}
```
dev-master
9999999-dev
Allows you to track visits to your site or landing page
Sources
Download
MIT
The Requires
The Development Requires