Esempio n. 1
0
 /**
  * Returns true if the URL matches this route, false otherwise.
  *
  * @param  string  $url     The URL
  * @param  array   $context The context
  *
  * @return array   An array of parameters
  */
 public function matchesUrl($url, $context = array())
 {
     $url = aRouteTools::removePageFromUrl($this, $url);
     // No engine page found
     if ($url === false) {
         return false;
     }
     return parent::matchesUrl($url, $context);
 }
Esempio n. 2
0
 /**
  * Returns true if the URL matches this route, false otherwise.
  *
  * @param  string  $url     The URL
  * @param  array   $context The context
  *
  * @return array   An array of parameters
  */
 public function matchesUrl($url, $context = array())
 {
     $url = aRouteTools::removePageFromUrl($this, $url);
     return parent::matchesUrl($url, $context);
 }