141,7 → 141,7 |
|
/** |
* Reads the connection configuration for this database |
* from the configuration file, application/.config |
* from the configuration file, .config |
* |
* There must be an INI section named "database:" followed |
* by the value of the <code>$_dbname</code> property |
159,7 → 159,7 |
public function readConfig () |
{ |
/* FIXME: Configuration file path should not be hardcoded */ |
$config = parse_ini_file('application/.config', true); |
$config = parse_ini_file('.config', true); |
if ($config !== false) |
{ |
$section = 'database:' . $this->_dbname; |