CodeCharge Studio

PathToRoot Variable (PHP)

Applies to

Page Context

Type

string

Access

read/write

Syntax

global $PathToRoot;
$PathToRoot [= value]

Description

This variable contains a relative path to the root directory of the site from the location of the current page. This property is usually used to reference common files generated by CodeCharge Studio in the site's root directory. This includes JavaScript file paths.

See also

FileName Variable
TemplateFileName Variable


On-line, printable versions and updates