API Documentation
There are three main tasks the config file undertakes:
- Setting the include path
- Auto loading class files
- Setting up the system constants
This config file is included by each .html / .php file using a call similar to:
if(file_exists(dirname($_SERVER['DOCUMENT_ROOT']).DIRECTORY_SEPARATOR.
"dc-admin-config/config.php")
&& is_file(dirname($_SERVER['DOCUMENT_ROOT']).DIRECTORY_SEPARATOR.
"dc-admin-config/config.php")){
include(dirname($_SERVER['DOCUMENT_ROOT']).DIRECTORY_SEPARATOR.
"dc-admin-config/config.php");
// page activity goes in here
}else{ // we can't find the config file
echo "Unable to find config file at: ".
";
dirname($_SERVER['DOCUMENT_ROOT']).DIRECTORY_SEPARATOR.
'dc-admin-config/config.php.'.".
Please check the file path is correct.