Zend_View: Access the view from a view helper
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. Firstly we create a parent class: < ?php abstract class My_View_Helper_Abstract { protected $_view; public function setView($view) { $this->_view = $view; } } This 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… continue reading.


