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's Blog:
Some ZendView examples
March 12, 2012 @ 10:52:48

Following on the heels of the beta 3 release of the Zend Framework 2, Rob Allen has been posting more about its features and what's changed from the version 1 world. In this new post he looks at some examples of how to use the newly refactored ZendView component.

With the release of Beta 3 of Zend Framework, we now have a significantly refactored the ZendView component. One of the changes made is that there is a ViewModel object that is returned from a controller which contains the variables to be used within the view script along with meta information such as the view script to render. [...] However, we can do many more interesting things than this and I've put together a test application with a controller showing some of the things that can be done.

Included in the post includes two snippets of code from the sample project - how to change the layout in the action and creating another view model at the layout level.

0 comments voice your opinion now!
zendframework2 zendview sample application zf2


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Openbiz Cubi: A Robust PHP Application Framework, Part 2

Community News: Zend Framework 2.0.0 STABLE Released!

NetTuts.com: Testing Like a Boss in Laravel: Models

SitePoint PHP Blog: Faster PHP Apps - Profile Your Code with Xdebug

IBM developerWorks: Devise Web 2.0 applications with PHP and DHTML (Part 1)


Community Events

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


version performance xdebug release interview symfony2 extension library php7 api opinion conference podcast introduction voicesoftheelephpant laravel framework series example community

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