/** * Converts link to URL. * @return string */ public function __toString() { try { return $this->component->link($this->destination, $this->params); } catch (\Exception $e) { Nette\Debug::toStringException($e); } }
public function getUrl() { $param = $this->getParam(); if (NULL === $param) { return $this->presenterComponent->link($this->destination); } else { return $this->presenterComponent->link($this->destination, $param); } }