igdr / layout-component-bundle
There is no license information available for the latest version (dev-master) of this package.
Layout Component Bundle
Package info
github.com/igdr/LayoutComponentBundle
Type:symfony-bundle
pkg:composer/igdr/layout-component-bundle
dev-master
2016-01-08 13:58 UTC
Requires
- php: >=5.3.3
- symfony/symfony: >=2.4
- twig/extensions: ~1.0
This package is not auto-updated.
Last update: 2026-03-10 10:52:08 UTC
README
Installation
Add the bundle to your composer.json:
"igdr/layout-component-bundle" : "dev-master"
and run:
php composer.phar update
Then add the LayoutComponentBundle to your application kernel:
// app/IgdrKernel.php
public function registerBundles()
{
return array(
// ...
new Igdr\Bundle\LayoutComponentBundle\IgdrLayoutComponentBundle(),
// ...
);
}
Add layout.yml to Resources/config directory of your bundle
places:
left:
components:
filter:
controller: AppShopBundle:Frontend/Filter:filter
routes:
- "category_[\d]+"
navigation:
controller: AppShopBundle:Frontend/Product/Navigation:index
routes:
- "category_products_[\d]+"
And mark places for yours components in layout.html.twig
{{ igdr_layout_component_place('left') }}