News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Richard Lord's Blog:
Zend_View helpers in include path
February 08, 2007 @ 07:44:00

In working with the Zend Framework, Richard Lord has come across something a little strange - how Zend_View helpers work if you try to put them outside of the Framework's own helpers folder and try to use them.

All is fine if you place your helpers either within the zend framework's own helpers folder (not a good idea) or within a directory in your site structure. The problem arises if you place the helpers in a folder in the PHP include path and don't know the full path to the folder.

He investigates why this might happen, tracking it down to some include issues despite mimicking the structure the Zend Framework itself recommends. Unfortunately, this still requires knowing the full path to the helper, not the relative. Unfortunately, that's just not what he needs.

So, he set out to find a solution and ended up with two - one that makes a modification to the Zend_View_Abstract class and the other is to extend the Zend_View class with his own custom class handling the pathing to pull the helper in correctly.

0 comments voice your opinion now!
zendframework zendview helper path include problem zendframework zendview helper path include problem


blog comments powered by Disqus

Similar Posts

phpDevelopment: Zend Framework Tutorial Series: Part 2 - Debugging your application

The Bakery: New Tutorials, News and Helpers Posted

Padraic Brady's Blog: Zend Framework: Surviving The Deep End Book - Chapters 4, 5, 6, 7 and Appendix

Jani Hartikainen's Blog: Making a PDF generator class using Zend_Pdf

Tony Bibbs' Blog: Oh So Familiar Problem with Zend Studio Neon (Eclipse-based)


Community Events





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


series unittest install community threedevsandamaybe opinion language developer refactor framework symfony2 api laravel introduction podcast interview list release code testing

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