Application/Route.php
public function matchUrl($method, $url) {
		if ($this->method == $method) {
			if (preg_match('/^' . $this->url . '$/', $url, $matches)) {
				$params = $this->prepareParams($matches);
				$this->execute($params);
				return true;
			}
			return false;
		}
	}
public function matchUrl($method, $url) {
		if ($this->method == $method) {
			if (preg_match('/^' . $this->url . '$/', $url, $matches)) {
				$params = $this->prepareParams($matches);
				$this->execute($params);
				return true;
			}
			return false;
		}
	}
public function matchUrl ( $ method , $ url ) { if ( $ this -> method == $ method ) { if ( preg_match ( '/^' . $ this -> url . '$/' , $ url , $ matches ) ) { $ params = $ this -> prepareParams ( $ matches ) ; $ this -> execute ( $ params ) ; return true ; } return false ; } }
Checks if the passed url matches the route.
If it maches the class
will be created and the function called with the arguments extracted
from the url
Checks if the passed url matches the route . If it maches the class will be created and the function called with the arguments extracted from the url