Beispiel #1
0
 /**
  * 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);
     }
 }
Beispiel #2
0
 public function getUrl()
 {
     $param = $this->getParam();
     if (NULL === $param) {
         return $this->presenterComponent->link($this->destination);
     } else {
         return $this->presenterComponent->link($this->destination, $param);
     }
 }