src/Ubiquity/controllers/Router.php
public static function slashPath($path) {
		if (UString::startswith ( $path, "/" ) === false)
			$path = "/" . $path;
		if (! UString::endswith ( $path, "/" ))
			$path = $path . "/";
		return $path;
	}
public static function slashPath($path) {
		if (UString::startswith ( $path, "/" ) === false)
			$path = "/" . $path;
		if (! UString::endswith ( $path, "/" ))
			$path = $path . "/";
		return $path;
	}
public static function slashPath ( $ path ) { if ( UString :: startswith ( $ path , "/" ) === false ) $ path = "/" . $ path ; if ( ! UString :: endswith ( $ path , "/" ) ) $ path = $ path . "/" ; return $ path ; }
Adds a slash before and after a path

@param string $path The path to modify
@return string The path with slashes
Adds a slash before and after a path