public function connect($url, $name, $controller=null)
	{
		$this->_router->connect($url, $name, $controller);

		// register the controller if one is provided
		if(!is_null($controller))
		{
			$this->_controllers[$name] = $controller;
		}

		return $this;
	}
public function connect($url, $name, $controller=null)
	{
		$this->_router->connect($url, $name, $controller);

		// register the controller if one is provided
		if(!is_null($controller))
		{
			$this->_controllers[$name] = $controller;
		}

		return $this;
	}
public function connect ( $ url , $ name , $ controller = null ) { $ this -> _router -> connect ( $ url , $ name , $ controller ) ; // register the controller if one is provided if ( ! is_null ( $ controller ) ) { $ this -> _controllers [ $ name ] = $ controller ; } return $ this ; }
Defines a url, a route name and an optional controller
@param $url string the url to connect the route to
@param $name string an arbitrary controller name, must be unique
@param $controller mixed either a controller class, or the name of another route
Defines a url a route name and an optional controller