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:
View helpers in modules
December 13, 2010 @ 10:04:15

Rob Allen has this quick new post to his blog today for those out there developing with the Zend Framework - how to use view helpers inside modules.

I came across a situation last week where I needed to access a view helper that was in the default module's views/helpers directory when I was in another module. This came about because my layout.phtml uses a view helper that is in application/views/helpers.

An error's thrown if you try to use it normally, something about a plugin not being found. The key fix is an easy one, though - add a new Zend_View_Helper path and a helperPath for the module you want to use them in inside the application.ini file.

0 comments voice your opinion now!
view helper module zendframework


blog comments powered by Disqus

Similar Posts

ProDevTips: Writing a CMS/Community with Smarty and the Zend Framework: Part 8

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 3: Composite View Pattern

Padraic Brady's Blog: Zend Framework Proposal: Zend\Html\Filter (HTML Sanitisation And Manipulation)

Anna Filina's Blog: Integrating Markdown with Symfony

Tim Koschuetzki's Blog: CakePHP Pluralize Helper


Community Events

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


opinion api framework podcast introduction version example list release series laravel5 interview community php7 library voicesoftheelephpant language extension security laravel

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