News Feed
Sections




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

Ben Ramsey's Blog:
NY Thoughts and Zend_View_Helper Notes
April 11, 2007 @ 07:41:00

In a new post today, Ben Ramsey continues on from some previous thoughts on a different sort of method for using the Views in the Zend Framework. This time, he focuses on a more automated way implement them in the same way.

Just as views can be automated'"that is, you don't have to instantiate a Zend_View object; the controller does it all for you when you call $this->render() from any controller action'"you do not have to explicitly tell Zend_View where your helpers reside, as the manual suggests. Instead, place your helpers in a special "helpers" folder where the Zend_Controller_Action's initView() can find them.

He includes how the directory structure would be altered (the addition of the helpers folder) and how to name the helpers so they can be used in an application (Zend_View_Helper_*). Also, check out the post for some of his interesting thoughts on a recent visit of his to New York City.

0 comments voice your opinion now!
zendframework view helper notes automatic directory zendframework view helper notes automatic directory


blog comments powered by Disqus

Similar Posts

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 7: Zend_View Enhanced

Mindoop Blog: SEO Warning : Zend framework and duplicate content

Jim Plush's Blog: Followup on rethinking Zend Models with DDD - Framework code included

Matthew Weier O'Phinney's Blog: View Layers, Database Abstraction, Configuration, Oh, My!

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 2: View Helper Pattern


Community Events





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


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

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