News Feed
Jobs Feed
Sections




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

Pádraic Brady's Blog: The Factory and Abstract Factory patterns in PHP

Tim Koschuetzki's Blog: CakePHP 1.2 Manual

Terry Chay's Blog: Clever HTTP

PHP.net: Manual restructure and license change

Michael Feichtinger's Blog: HTML5 WebSockets Example


Community Events











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


application tool release development interview example opinion unittest code testing podcast zendframework2 introduction community functional conference series framework language phpunit

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