I was wondering when to call from the view a Custom View Helper like this one
<?php
class Zend_View_Helper_MyHelper
{
public $view;
public function setView(Zend_View_Interface $view)
{
$this->view = $view;
}
public function myHelper()
{
return $this->view->escape(
’This is being output from the custom helper <br />’
);
}
}
?>
and an action view helper.
Thanks.
Yehia A.Salam
Why would you do this?
You could easily do:
and then do a:
<?php echo $this->myHelper(); ?>on your view script