dev-master
9999999-dev https://github.com/wdJer/JerRouteLayoutSimple ZF2 module for making route based layouts.
The Requires
- php >=5.3
by Juergen Eger
zf2
Wallogit.com
2017 © Pedro Peláez
Simple ZF2 module for making route based layouts.
Version 1.0.0 created by Juergen Eger, (*1)
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)
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)
Simple ZF2 module for making route based layouts.
zf2