News Feed
Jobs Feed
Sections

Recent Jobs

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.

1 comment voice your opinion now!
zendframework view helper example manual zendframework view helper example manual




Similar Posts

Padraic Brady's Blog: The Zend Framework and Microformats: Zend_Microformat Proposed

Johannes Schluter's Blog: DTraceing around

Tilllate.com Blog: tilllate.com is now all Zend Framework

Community News: Gabor Hojtsy Steps Down as PHP Manual Editor

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


Community Events







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


PEAR ajax developer package cakephp code security zendframework framework releases PHP5 zend job release example book application mysql conference database

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