jer/jer-route-layouts

该包的最新版本(dev-master)没有可用的许可信息。

一个简单的ZF2模块,用于基于路由创建布局。

dev-master 2013-04-01 16:23 UTC

This package is not auto-updated.

Last update: 2024-09-23 12:25:48 UTC


README

版本 1.0.0 由Juergen Eger创建

简介

JerRouteLayouts是一个非常简单的ZF2模块(少于50行),它允许您为每个路由指定要使用的备用布局。如果未为特定路由定义布局,JerRouteLayouts也能够在父路由中找到布局。

用法

使用JerRouteLayouts非常简单。在任何模块配置或自动加载的配置文件中,只需指定以下内容:

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',
  ),
);

就是这样!