14 Feb, 2009
Creating a custom View Helper in the Zend Framework
Posted by: Peter In: PHP| Zend Framework
Zend Framework ships with several View Helpers, such as the url View Helper. Anywhere in a view script one can call $this->url() to generate a url to a certain page. For example:
$this->url(array(
‘module’ => ‘moduleName’,
‘action’ => ‘actionName’,
‘additionalParam’ =>‘value’))
I wanted to create my own helper, for generating paths to thumbnails, and it turned out [...]