2017 © Pedro Peláez
 

project landing-tracking-bundle

Allows you to track visits to your site or landing page

image

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

The README.md

Keltanas Tracking Bundle

Instalation

  1. Add "keltanas/landing-tracking-bundle": "1.0.*@dev" to your composer.json, (*1)

  2. Add bundle to app/AppKernel.php, (*2)

    php new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), new keltanas\Bundle\TrackingBundle\keltanasTrackingBundle(),, (*3)

  3. Add to app/config/config.yml, (*4)

    php keltanas_tracking: email_from: "%mailer_user%" email_to: "%mailer_user%", (*5)

  4. Add to app/config/routing.yml, (*6)

    yml keltanas_tracking: resource: "@keltanasTrackingBundle/Resources/config/routing.yml" prefix: /tracking, (*7)

  5. Perform php composer update, (*8)

  6. Redefine base.html.twig as app/Resources/keltanasTrackingBundle/views/base.html.twig, (*9)

  7. 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;
}
```

The Versions