url(array('controller'=>''), 'default', true); * * @param string $link * @param string $setType * @param string $setPos * @return Zend_View_Helper_TopNav */ public function topNav($link = null, $setType = Zend_View_Helper_Placeholder_Container_Abstract::APPEND, $setPos = 0) { $link = (string) $link; if ($link !== '') { if ($setType == Zend_View_Helper_Placeholder_Container_Abstract::SET) { if ($setPos != 0) $this->items[$setPos] = $link; else $this->items[] = $link; } elseif ($setType == Zend_View_Helper_Placeholder_Container_Abstract::PREPEND) { $this->items = array_merge(array($link), $this->items); } else { $this->items[] = $link; } } return $this; } /** * Turn helper into string * * @param string|null $indent * @param string|null $locale * @return string */ public function toString($indent = null, $locale = null) { $output = ''; $indent = (null !== $indent) ? $this->getWhitespace($indent) : $this->getIndent(); ksort($this->items); $output .= $indent . "\n"; return $output; } }