News Feed
Jobs Feed
Sections




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

Joey Rivera's Blog: Caching using PHP/Zend_Cache and MySQL

Content with Style: Linkedin and Zend_Oauth

Rob Allen's Blog: Zend_View: Access the view from a view helper

Martin Psinas' Blog: Watermarking with text and ImageMagick

Rob Allen's Blog: View helpers in modules


Community Events











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


opinion usergroup podcast series development functional interview language community database conference introduction zendframework2 unittest rest testing framework release phpunit symfony2

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