dev-master
9999999-devLayout Component Bundle
The Requires
- php >=5.3.3
- twig/extensions ~1.0
- symfony/symfony >=2.4
component layout igdr
Wallogit.com
2017 © Pedro Peláez
Layout Component Bundle
Add the bundle to your composer.json:, (*1)
"igdr/layout-component-bundle" : "dev-master"
and run:, (*2)
php composer.phar update
Then add the LayoutComponentBundle to your application kernel:, (*3)
// app/IgdrKernel.php
public function registerBundles()
{
return array(
// ...
new Igdr\Bundle\LayoutComponentBundle\IgdrLayoutComponentBundle(),
// ...
);
}
Add layout.yml to Resources/config directory of your bundle, (*4)
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, (*5)
{{ igdr_layout_component_place('left') }}
Layout Component Bundle
component layout igdr