Solar_Uri_Action::setPath()

public void Solar_Uri_Action::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.



Local