Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class Zend_View_Helper_List extends Zend_View_Helper_Abstract
  2. {
  3. public $view;
  4.  
  5. public function list()
  6. {
  7. <?php
  8. foreach ($this->view->userList as $k => $v) {
  9. if(!isset($v)) {
  10. echo '<li>' . $k . '</li>';
  11. } else {
  12. echo '<li><a href="' . $v . '">' . $k . '</a></li>';
  13. }
  14. }
  15. ?>
  16. }
  17.  
  18. public function setView(Zend_View_Interface $view)
  19. {
  20. $this->view = $view;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement