public function parse($uri)
	{
		// Create the URI object
		$uri = $this->createUri($uri);

		$this->bind($uri->getQuery(true));

		// Process the parsed variables based on custom defined rules
		foreach ($this->rules['parse'] as $rule)
		{
			if ($rule($uri))
			{
				break;
			}
		}

		$vars = array_merge($uri->getQuery(true), $this->vars());

		$this->bind($vars);

		return $this->vars();
	}
public function parse($uri)
	{
		// Create the URI object
		$uri = $this->createUri($uri);

		$this->bind($uri->getQuery(true));

		// Process the parsed variables based on custom defined rules
		foreach ($this->rules['parse'] as $rule)
		{
			if ($rule($uri))
			{
				break;
			}
		}

		$vars = array_merge($uri->getQuery(true), $this->vars());

		$this->bind($vars);

		return $this->vars();
	}
public function parse ( $ uri ) { // Create the URI object $ uri = $ this -> createUri ( $ uri ) ; $ this -> bind ( $ uri -> getQuery ( true ) ) ; // Process the parsed variables based on custom defined rules foreach ( $ this -> rules [ 'parse' ] as $ rule ) { if ( $ rule ( $ uri ) ) { break ; } } $ vars = array_merge ( $ uri -> getQuery ( true ) , $ this -> vars ( ) ) ; $ this -> bind ( $ vars ) ; return $ this -> vars ( ) ; }
Function to convert a route to an internal URI

@param   string  $uri  The request URL
@return  array
Function to convert a route to an internal URI