/** * String conversion. * Returns a string representation of the current route as used in URLs. * * NOTE: The base_url is not prepended. @see getURL() to create valid URLs. * * @return string - The URL representing the route */ public function __toString() { try { // Ensure the route path is fresh $this->assertRoutePath(); return $this->_route_path; } catch (exception $e) { return vB_Router::get500Path(); } }