marcusamatos / jvslayout
JvsLayout provides a suite of classes to layout manager.
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:zf-module
Requires
- php: >=5.3.3
- zendframework/zendframework: >=2.2.0
This package is not auto-updated.
Last update: 2025-03-01 17:23:06 UTC
README
Introduction
JvsLayout change layout by route and uri
Requirements
- Zend Framework 2
Instalation
Add "marcusamatos/jvslayout": "1.*"
to composer.json and update
How to use
By Route Default:
return array( 'router' => array( 'routes' => array( 'home' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/', 'defaults' => array( 'controller' => 'Application\Controller\Index', 'action' => 'index', 'layout' => 'layout/home' ), ), ) ) );
By Config:
return array( 'jvs-layout' => array( 'uri' => array( '/news' => 'layout/news', '/admin*' => 'layout/admin' ); ); );