Previous Page
set()

Solar_Uri_Public
setPath()

Next Page
setQuery()

setPath()

public void setPath ( string $spec )

Sets the Solar_Uri::$path array from a string.

Inherited from Solar_Uri.

Parameters

  • (string) $spec: The path string to use; for example, "/foo/bar/baz/dib". A leading slash will not create an empty first element; if the string has a leading slash, it is ignored.

Returns

  • (void)

Description

Sets the Solar_Uri::$path array from a string.

This will overwrite any previous values. Also, resets the format based on the final path value.