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:
View Helper Case Notes
September 19, 2007 @ 10:25:00

Rob Allen has some very brief notes posted today on how to use a View Helper in the Zend Framework:

This is how it works: views/helpers/MyHelper.php contains class Zend_View_Helper_MyHelper which has a function called myHelper()

Also, if you add a function called setView() to your class, then the View will pass you an instance of itself before it calls your view helper function.

A code example is included to illustrate. Check out is page in the Zend Framework manual for even more info on these handy helpers.

2 comments voice your opinion now!
zendframework view helper example manual zendframework view helper example manual


blog comments powered by Disqus

Similar Posts

7PHP.com: Interview with Matthew Weier O'Phinney - Project Lead of Zend Framework

Zend Developer Zone: Zend Framework MVC Request Lifecycle

PHPWomen.org: Filter and PHP 5.2

Zend Developer Zone: Zend Framework Browser Plugins

Padraic Brady's Blog: Zend Framework: Surviving The Deep End, Chapter 3 - The Model Available


Community Events





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


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

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