This procedure describes how to create a new Zend View Helper File. Zend View Helpers, when attached to a view object, can call the helper as if it were a method of the view object itself. The View object retains helper instances, which means that they retain states between calls.
See https://framework.zend.com for more on Zend View Helpers.
|
|
|
To create a new Zend View Helper file:
|
A new Zend View Helper file will be created with the relevant template. This includes phpDoc block comments which help Zend Studio to recognize that the element is a Zend View Helper. |
Note:
Zend View Helper phpDoc block comments must be in the format:
/**
* <Helper's_Name> helper
*
* @uses viewHelper <Helper's_Prefix>
*/
All Zend View Helpers in your project which are correctly commented will be available in the Content Assist list in a Zend View file. This includes the default Zend View Helpers included in Zend Framework's libraries.
In addition, pressing Ctrl and clicking on a Zend View Helper defined in a View file will take you to the Zend View Helper's declaration.
|
|
|
Related Links: Creating a Zend View File Integrating with Zend Framework Creating Zend Framework Elements |
|
|
©1999-2013 Zend Technologies LTD. All rights reserved.