News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



Rob Allen's Blog:
Zend_View Access the view from a view helper
0 comments :: posted Friday December 07, 2007 @ 12:08:00
voice your opinion now!

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.

tagged with: zendview zendframework helper access view zendview zendframework helper access view



ajax PHP5 releases book zend zendframework code cakephp conference job mysql release package application security developer framework pecl database PEAR

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