Welcome Guest, Not a member yet? Register   Sign In
using values from config in the db config file
#1

[eluser]cwpollock[/eluser]
I'm trying to centralize the change in configuration information into one file.

I want to set the db configuration along this lines

Code:
$db['default']['database'] = $this->config->item("db_name");

When I tried this it tells me that "this" is not available in this context.

Any thoughts on how to do this?


Messages In This Thread
using values from config in the db config file - by El Forum - 12-30-2008, 08:05 AM
using values from config in the db config file - by El Forum - 12-30-2008, 08:15 AM
using values from config in the db config file - by El Forum - 12-30-2008, 08:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB