News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen:
Module specific layouts in ZF2
September 17, 2012 @ 10:04:10

Rob Allen has a new post to his site about module-specific layouts in Zend Framework 2 via a module from Evan Coury.

If you need different layout scripts to be rendered for different modules in Zend Framework 2, then Evan Coury has made this extremely easy. His new module EdpModuleLayouts is just the ticket! Once installed, you simply have to add a new array to a config file in the config/autoload folder.

The update is just a simple "module_layouts" setting that lets you specify it based on the module name by giving it a layout path, He explains the script a bit more in the comments and points to this other post for more information about modules handling their own layouts.

0 comments voice your opinion now!
module layout zendframework2 edpmodulelayouts evancoury


blog comments powered by Disqus

Similar Posts

Rob Allen: Injecting configuration into a ZF2 controller

ThinkPHP Blog: Accessing NTLM secured resources with PHP

Master Zend Framework: How to Use ZFTool Diagnostics To Ensure Your Modules Work

Flyn San's Blog: Better Doctrine 2 Module for Kohana 3

Matthew Weier O'Phinney's Blog: Module Bootstraps in Zend Framework: Do's and Don'ts


Community Events





Don't see your event here?
Let us know!


package release unittest laravel opinion interview bugfix voicesoftheelephpant community series library introduction language api zendserver deployment symfony podcast framework install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework