to test some new features and/or tricks on a test site, I usually duplicate the DB and zikula files, but any time I have to modify the config.php file to point to the correct test database instead of the live site.
Now, I noticed at the bottom of the config.php file this include, about a personal_config.php file
Code
// ----------------------------------------------------------------------
// if there is a personal_config.php in the folder where is config.php
// we add it. (This HAS to be at the end, after all initialization.)
// ----------------------------------------------------------------------
if (file_exists('config/personal_config.php')) {
require_once 'config/personal_config.php';
}
// if there is a personal_config.php in the folder where is config.php
// we add it. (This HAS to be at the end, after all initialization.)
// ----------------------------------------------------------------------
if (file_exists('config/personal_config.php')) {
require_once 'config/personal_config.php';
}
So i think I could simply add that file in my test directory tree, with the override definitions (mainly dbname change), without any modification to the original backupped files from the live site, and I have a working test site... am I right?
thank you in advance
Enrico
