igdr / layout-component-bundle
Layout Component Bundle
Installs: 6 202
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/symfony: >=2.4
- twig/extensions: ~1.0
This package is not auto-updated.
Last update: 2024-12-31 04:48:52 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') }}