2017 © Pedro Peláez
 

symfony-bundle layout-component-bundle

Layout Component Bundle

image

igdr/layout-component-bundle

Layout Component Bundle

  • Friday, January 8, 2016
  • by igdr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,732 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Layout component Bundle

Installation

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') }}

The Versions

08/01 2016

dev-master

9999999-dev

Layout Component Bundle

  Sources   Download

The Requires

 

component layout igdr