Function cInclude
Includes a file and takes care of all path transformations.
Example: cInclude('classes', 'class.backend.php');
Currently defined areas:
frontend Path to the current frontend classes Path to the CONTENIDO classes (see NOTE below) cronjobs Path to the cronjobs external Path to the external tools includes Path to the CONTENIDO includes scripts Path to the CONTENIDO scripts module Path to module
NOTE: Since CONTENIDO (since v 4.9.0) provides autoloading of required class files, there is no need to load CONTENIDO class files of by using cInclude().
Package: Core\Backend
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at includes/api/functions.api.general.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at includes/api/functions.api.general.php
string |
$sWhere |
The area which should be included |
string |
$sWhat |
The filename of the include |
boolean |
$bForce = false |
If true, force the file to be included |
string |
$bReturnPath = false |
Flag to return the path instead of including the file |
boolean|string|null
|