Welcome Guest, Not a member yet? Register   Sign In
establishing a local configuration for each developer, dev server, production...
#8

I've been exploring the loader and I think I might almost understand things well enough to set up a local PHP config file that overrides the default configuration files (but only if this file is present) but I'm confused by the fact that the various different configuration files define different variables:
config/autoload.php - defines $autoload
config/config.php - defines $config
config/database.php - defines $db
config/hooks.php - defines $hook.php
config/routes.php - defines $route

I also can't figure out how to access the db config values from $this->config->item(). From what I can tell, the db configuration values are not defined in $this->config anywhere.

Can someone suggest a way in which I might use a hook to override the default configuration values. I'm especially interested in overriding db settings, base_url, etc.

I really do NOT want to make changes to .htaccess or the apache config if it can be avoided.
Reply


Messages In This Thread
RE: establishing a local configuration for each developer, dev server, production... - by sneakyimp - 01-09-2015, 09:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB