News Feed
Jobs Feed
Sections




News Archive
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

PHPImpact Blog: TDD with Symfony: The first test always fails

Robert Basic: Working with custom view helpers in Zend Framework 2

PHPBuilder.com: An Early Look at Zend Framework 2.0

PowerHomeBix.com: Why PHP in the web applications?

Rob Allen: Sending an HTML with text alternative email with Zend\Mail


Community Events









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


object zendframework2 code api unittest introduction opinion release development language podcast example testing community composer event tool framework interview functional

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