Skip to content

Instantly share code, notes, and snippets.

@tamboer
Last active December 16, 2015 18:49
Show Gist options
  • Select an option

  • Save tamboer/5480631 to your computer and use it in GitHub Desktop.

Select an option

Save tamboer/5480631 to your computer and use it in GitHub Desktop.
Get Zend view helpers in controller
<?php
$view = Zend_Layout::getMvcInstance()->getView();
$url = $view->baseUrl();
echo $url;//use the baseUrl()
echo $view->formatToHourMinutes($value);//use a view helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment