2017 © Pedro Peláez
 

library jer-route-layouts

Simple ZF2 module for making route based layouts.

image

jer/jer-route-layouts

Simple ZF2 module for making route based layouts.

  • Monday, April 1, 2013
  • by wdJer
  • Repository
  • 0 Watchers
  • 5 Stars
  • 111 Installations
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

JerRouteLayouts Module for Zend Framework 2

Version 1.0.0 created by Juergen Eger, (*1)

Introduction

JerRouteLayouts is a very simple ZF2 module (less than 50 lines) that simply allows you to specify alternative layouts to use for each route. If no layout is defined for a specific route JerRouteLayouts is able to find layouts in parent routes too., (*2)

Usage

Using JerRouteLayouts is very, very simple. In any module config or autoloaded config file simply specify the following:, (*3)

array(
  'route_layouts' => array(
    //will be used for each child route under the "some" route. Except for the defined "some/route" route
    'some' => 'layout/some-layout',
    //will be used for each child route under the "some/route" route.
    'some/route' => 'layout/some-other-layout',
  ),
);

That's it!, (*4)

The Versions

01/04 2013

dev-master

9999999-dev https://github.com/wdJer/JerRouteLayout

Simple ZF2 module for making route based layouts.

  Sources   Download

The Requires

  • php >=5.3

 

by Juergen Eger

zf2