Skip to content

Instantly share code, notes, and snippets.

Created November 26, 2014 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e2f27fba2d5af3d40048 to your computer and use it in GitHub Desktop.
Save anonymous/e2f27fba2d5af3d40048 to your computer and use it in GitHub Desktop.
<?php
class S2d_Navigation_Page_Mvc extends Zend_Navigation_Page_Mvc
{
public function getHref()
{
$ret = '/' . Zend_Registry::get('Zend_Locale')->__toString();
$href = parent::getHref();
if (strlen($href) > 1) {
$ret .= $href;
}
return $ret . '/';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment