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:
Determining if a ZF view helper exists
January 14, 2010 @ 12:07:19

Rob Allen has a quick new post for you Zend Framework users out there on how to detect if a view helper even exists before you try to use it.

If you need to know whether a view helper exists before you call it, one way is to write a simple view helper to tell you. You can then use it in a view script.

The comments mention another way to do it - calling the getHelper method - but that can cause exceptions to be thrown if the helper doesn't exist. You can find more on view helpers in this section of the Zend Framework manual (or here on custom helpers).

0 comments voice your opinion now!
zendframework view helper tutorial


blog comments powered by Disqus

Similar Posts

Devshed: The Basics of Using the Prototype Pattern with PHP 5

Script-Tutorials.com: How to parse web pages using XPath

KillerPHP Blog: PHP Video: Processing Forms with PHP - part 2

Federico Cargnelutti's Blog: Increase speed and reduce bandwidth usage with ZF and Apache

Padraic Brady's Blog: Zend Framework: Surviving The Deep End Book - Chapters 4, 5, 6, 7 and Appendix


Community Events





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


tool security series version language framework interview application podcast opinion install package symfony library laravel composer release community voicesoftheelephpant introduction

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