HdRouteLayouts Module for Zend Framework 2
Introduction
HdRouteLayouts is a very simple module that allows you to attach layout configuration to a route., (*1)
Installation
Main Setup
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org., (*2)
php composer.phar require hounddog/hd-route-layouts
# (When asked for a version, type `0.*`)
Then add HdRouteLayouts to your config/application.config.php, (*3)
Usage
Using HdRouteLayouts is very, very simple. In any module config or autoloaded
config file simply specify the following:, (*4)
array(
'route_layouts' => array(
'my/route' => 'layout/some-layout',
),
);