igdr/layout-component-bundle

There is no license information available for the latest version (dev-master) of this package.

Layout Component Bundle

Installs: 6 202

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2016-01-08 13:58 UTC

This package is not auto-updated.

Last update: 2022-09-12 17:12:43 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') }}