Advertisement
dragonbe

view helper example

Feb 22nd, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2. class Application_View_Helper_HelloArray extends Zend_View_Helper_Abstract
  3. {
  4.    protected $_view;
  5.  
  6.    public function setView(Zend_View_Interface $view)
  7.    {
  8.        $this->_view = $view;
  9.    }
  10.    public function helloArray($array)
  11.    {
  12.       return $this->htmlList($array);
  13.    }
  14. }
  15.  
  16. // view tpl
  17. <?php echo $this->helloArray('a','b','c'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement