Master update of include files
First step to clean up all files that are not mandatory for outside access * move all header/footer/smarty/set_paths/config files (inc) into includes/ folder * generate basic config.php that JUST loads the config.inc file (search) * config.inc file has sub sections for db access arrays and host configs, so config.inc is more static * Also move edit base and template arrays to the include folder * move the language po files to the 4dev folder as they do not need to sit outside * remove not maintained "files.php" TODO: split out templates and language files into external layout group perhaps drop the whole sub template include path thing as this is actually never really used and more annoying to maintain eg: layout/frontend/default/ -> layout/frontend eg: layout/fronend/default/template -> includes/frontend/template Also check splitting out the NOT define parts of the config.inc file G_TITLE, EDIT_STYLESHEET, EDIT_JAVASCRIPT, STYLESHEET, JAVASCRIPT to default define?
This commit is contained in:
@@ -256,7 +256,12 @@ class Generate extends \CoreLibs\DB\Extended\ArrayIO
|
||||
// load config array
|
||||
// get table array definitions for current page name
|
||||
// WARNING: auto spl load does not work with this as it is an array and not a function/object
|
||||
include(TABLE_ARRAYS."array_".$this->my_page_name.".inc");
|
||||
// check if this is the old path or the new path
|
||||
if (is_dir(TABLE_ARRAYS)) {
|
||||
include(TABLE_ARRAYS."array_".$this->my_page_name.".inc");
|
||||
} else {
|
||||
include(BASE.INCLUDES.TABLE_ARRAYS.'array_'.$this->my_page_name.'.inc');
|
||||
}
|
||||
$config_array = ${$this->my_page_name};
|
||||
|
||||
// start the array_io class which will start db_io ...
|
||||
|
||||
Reference in New Issue
Block a user