News Feed
Sections




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

Pádraic Brady's Blog:
Complex Views with the Zend Framework - Part 2 View Helper Pattern
April 21, 2007 @ 12:02:00

In a continuation of his previous blog post about complex pages in a Zend Framework, Pádraic Brady dives a little deeper into the View Helper design pattern he started looking at before.

So what is the problem? Anytime a partial View needs extra data (the View's Model) it needs to push calls to extra Controllers (following the current practice for the framework) in order to get that Model. This involves yet another complete dispatch cycle, with any number of classes, plugins, and operations involved. Yet in most cases this is completely unnecessary - why not just let the View request data from the Model directly?

He talks more about what the Helper is, where it sits, and a simple example - inside a blog application - where a Helper can be used to consume and display a remote RSS feed. He even includes the sample code that can make it all happen.

0 comments voice your opinion now!
designpattern view helper zendframework rss example designpattern view helper zendframework rss example


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Zend_Feed_Reader promoted to Zend Framework trunk (watch out for ZF 1.9!)

PHPied.com: AJAX MVC (so to speak)

Jan Lehnardt's Blog: Using the Zend Framework with Code Igniter (an alternative)

PHP Thinktank Blog: PHP-GTK with scottmattocks (IRC Talk Series)

Eran Galperin's Blog: On the pitfalls of date validation with the Zend Framework


Community Events





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


code bugfix community application introduction podcast install library language wordpress series symfony list release api interview unittest laravel developer configure

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