Rob Allen's Blog: Determining if a ZF view helper exists

You can't request more than 20 challenges without solving them. Your previous challenges were flushed.
Courtesy PHPDeveloper.org  Thu, 01/14/2010 - 12:07

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...


 

More related items

Rob Allen's Blog: Tutorial Q&A PDF
Rob Allen has pointed out a Q&A PDF that consolidates some of the common issues that people have had on Rob's Zend Framework tutorial. Common problems include everything from the...

Odafe Ojenikoh's Blog: Interactive PHP CLI...
Odafe Ojenikoh has submitted a post he's written up showing how to create a command line PHP application with the help of the Zend Framework and it's Zend_Form elements. Over the weekend,...

Rob Allen's Blog: One-to-Many Joins with...
Rob Allen has a tip for the Zend Framework users out there using the Zend_Db module to connect to their database resources - how to do a one to many join with the help of...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com