VV::root()

Return an absolute path to any resource relative to root_path.

Parameters

string

$pathname

Path to any resource relative from root_path.

Passing an empty string or nothing to this method will return an absolute path to the root folder itself.

Return value

string

Returns a string with an absolute pathname from a relative pathname passed to $pathname.


Examples

Check if an SVG file exists before embedding