keltanas / landing-tracking-bundle
Allows you to track visits to your site or landing page
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
Requires
- php: >=5.4
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.3
- incenteev/composer-parameter-handler: ~2.0
- knplabs/knp-paginator-bundle: ~2.3
- sensio/distribution-bundle: ~3.0
- sensio/framework-extra-bundle: ~3.0
- symfony/assetic-bundle: ~2.3
- symfony/monolog-bundle: ~2.4
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: ~2.5
- twig/extensions: 1.0.*
Requires (Dev)
- behat/behat: ~3.0
- behat/symfony2-extension: 2.0.*@dev
- phpunit/phpunit: ~4.0
- sensio/generator-bundle: ~2.3
This package is auto-updated.
Last update: 2024-12-08 06:37:32 UTC
README
Instalation
-
Add
"keltanas/landing-tracking-bundle": "1.0.*@dev"
to yourcomposer.json
-
Add bundle to
app/AppKernel.php
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), new keltanas\Bundle\TrackingBundle\keltanasTrackingBundle(),
-
Add to
app/config/config.yml
keltanas_tracking: email_from: "%mailer_user%" email_to: "%mailer_user%"
-
Add to
app/config/routing.yml
keltanas_tracking: resource: "@keltanasTrackingBundle/Resources/config/routing.yml" prefix: /tracking
-
Perform
php composer update
-
Redefine
base.html.twig
asapp/Resources/keltanasTrackingBundle/views/base.html.twig
-
Perform
app/console doctrine:schema:update --force
or create migration
Rendering
``` twig
{{ render(controller("keltanasTrackingBundle:Form:serve", {'name': 'callback'})) }}
```
'callback' - it is creating form name
Menu for admin panel:
``` 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;
}
```