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:
Zend_View Access the view from a view helper
December 07, 2007 @ 12:08:00

In this new blog entry, Rob Allen has shared a simple View setup that he's been using in his Zend_View setup (on the Zend Framework).

It's in the manual, but I thought I'd blog about my simple View Helper setup that ensures that I can get at the view with minimal effort. [...] his class contains the code required by Zend_View to collect an instance of the view and assign it to a protected variable. All my view helpers extend this class and so I can access the view using $this->_view.

His code creates a simple object that all of his views extend and make a single object that refers back to the view itself.

0 comments voice your opinion now!
zendview zendframework helper access view zendview zendframework helper access view


blog comments powered by Disqus

Similar Posts

IT Jungle: PHP and the Zend Framework

CodeSnipers.com: Stupidly Easy MVC - Group Membership Application (Part 2)

Zend Developer Zone: Zend Framework 1.0.3 Released

Padraic Brady's Blog: Zend Framework App Tutorial - Part 9: Zend_Vew and Displaying Blog Entries

Maarten Balliauw's Blog: Indexing Word 2007 (docx) files with Zend_Search_Lucene


Community Events





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


zendserver install community unittest deployment opinion podcast interview language bugfix package voicesoftheelephpant api framework series release introduction laravel library symfony

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