init.php
Initialize all defines and includes necessary files
Tags
Table of Contents
- BYTECODE_CACHE_EXISTS = unction_exists('opcache_compile_file') || unction_exists('apc_cache_info') || unction_exists('eaccelerator_info') || unction_exists('xcache_info')
- JELIX_LIB_CORE_PATH = JELIX_LIB_PATH . 'core/'
- JELIX_LIB_PATH = __DIR__ . '/'
- JELIX_LIB_UTILS_PATH = JELIX_LIB_PATH . 'utils/'
- JELIX_NAMESPACE_BASE = 'http://jelix.org/ns/'
- base of namespace path used in xml files of jelix
- JELIX_VERSION = '1.6.40'
- Version number of Jelix
- LIB_PATH = dirname(JELIX_LIB_PATH) . '/'
- jelix_autoload() : mixed
- function used by php to try to load an unknown class
- checkAppOpened() : mixed
- check if the application is opened. If not, it displays the yourapp/install/closed.html file with a http error (or lib/jelix/installer/closed.html), and exit.
- checkAppNotInstalled() : mixed
- check if the application is not installed. If the app is installed, an error message appears and the scripts ends.
- isAppInstalled() : mixed
Constants
BYTECODE_CACHE_EXISTS
public
mixed
BYTECODE_CACHE_EXISTS
= unction_exists('opcache_compile_file') || unction_exists('apc_cache_info') || unction_exists('eaccelerator_info') || unction_exists('xcache_info')
JELIX_LIB_CORE_PATH
public
mixed
JELIX_LIB_CORE_PATH
= JELIX_LIB_PATH . 'core/'
JELIX_LIB_PATH
public
mixed
JELIX_LIB_PATH
= __DIR__ . '/'
JELIX_LIB_UTILS_PATH
public
mixed
JELIX_LIB_UTILS_PATH
= JELIX_LIB_PATH . 'utils/'
JELIX_NAMESPACE_BASE
base of namespace path used in xml files of jelix
public
mixed
JELIX_NAMESPACE_BASE
= 'http://jelix.org/ns/'
Tags
JELIX_VERSION
Version number of Jelix
public
mixed
JELIX_VERSION
= '1.6.40'
Tags
LIB_PATH
public
mixed
LIB_PATH
= dirname(JELIX_LIB_PATH) . '/'
Functions
jelix_autoload()
function used by php to try to load an unknown class
jelix_autoload(mixed $class) : mixed
Parameters
- $class : mixed
Return values
mixed —checkAppOpened()
check if the application is opened. If not, it displays the yourapp/install/closed.html file with a http error (or lib/jelix/installer/closed.html), and exit.
checkAppOpened() : mixed
This function should be called in all entry point, before the creation of the coordinator.
Tags
Return values
mixed —checkAppNotInstalled()
check if the application is not installed. If the app is installed, an error message appears and the scripts ends.
checkAppNotInstalled() : mixed
It should be called only by some scripts like an installation wizard, not by an entry point.
Tags
Return values
mixed —isAppInstalled()
isAppInstalled() : mixed