Is there a way to inject custom core_config_data into magento?
I would like to set web/secure/base_url
, web/unsecure/base_url
and some others config dynamic and depending on the host.
I tried to remove the core_config_data
values from the database and inject a new XML node: default/web/secure/base_url
to the config in the index.php.
But I think before the Mage::run()
it's to early and after the Mage::run()
it's to late to change the config.
Does someone tried something familiar or is there already a cool solution?