Example #1
0
 /**
  * Retrieve the URL that the route was matched by.
  * 
  * Optionally accepts parameters to merge into matched parameters.
  * 
  * @param array $parameters [optional]
  * @return string
  */
 public function url(array $parameters = array())
 {
     if ($this->router) {
         $parameters = array_merge($this->matches, $parameters);
         return $this->router->url($this->path, $parameters);
     }
 }