Developer manual
- ^ References
- ^ Class utilities
- jApp: directories of the application
- jFilter: verifying and filtering datas
- jDateTime: dates and times
- jHttp: http requests
- jMailer: sending mails
- jWiki: generating contents from wiki contents
- jSession: managing sessions
- jMessage: short messages between actions
- jFile: file processing
- jPref: using application preferences
Jelix 1.4.8
Section: jApp: directories of the application
^ Class utilities | jFilter: verifying and filtering datas » |
Switch to language: FR
− Table of content
jApp is a class to specify (in application.init.php) and to retrieve different path of the application. Since Jelix 1.3, it replaces JELIX_APP_* constants.
Retrieve the application directory ¶
The method appPath()
returns the full path of the application. In old version, it was JELIX_APP_PATH.
$path = jApp::appPath();
Retrieve the temporary directory ¶
To have the path to the temp directory, call the methode tempPath()
. In old version, it was JELIX_APP_TEMP_PATH.
$path = jApp::tempPath();
Others methods ¶
$path = jApp::varPath(); // equals to the old JELIX_APP_VAR_PATH
$path = jApp::logPath(); // equals to the old JELIX_APP_LOG_PATH
$path = jApp::configPath(); // equals to the old JELIX_APP_CONFIG_PATH
$path = jApp::wwwPath(); // equals to the old JELIX_APP_WWW_PATH