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

[eluser]xwero[/eluser]
It seems a bit weird to import config settings in a config file. This also means there can only be one database group.

But a way to do it is just to include the one file, get the settings you need and destroy the rest
Code:
include(APPPATH'config/config.php');
$db = $config['db'];
unset($config);


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