Predefined Constants Reference
The following constants are defined by the Flow core.
Note
Every …PATH… constant contains forward slashes (/)
as directory separator, no matter what operating system Flow is run on.
Also note that every such path is absolute and has a trailing directory separator.
FLOW_SAPITYPE(string)The current request type, which is either
CLIorWeb.FLOW_PATH_FLOW(string)The absolute path to the Flow package itself
FLOW_PATH_ROOT(string)The absolute path to the root of this Flow distribution, containing for example the
Web,Configuration,Data,Packagesetc. directories.FLOW_PATH_WEB(string)Absolute path to the
Webfolder where, among others, theindex.phpfile resides.FLOW_PATH_CONFIGURATION(string)Absolute path to the
Configurationdirectory where the.yamlconfiguration files reside.FLOW_PATH_DATA(string)Absolute path to the
Datadirectory, containing theLogs,Persistent,Temporary, and other directories.FLOW_PATH_PACKAGES(string)Absolute path to the
Packagesdirectory, containing theApplication,Framework,Sites,Library, and similar package directories.FLOW_VERSION_BRANCH(string)The current Flow branch version, for example
1.2.