Can read database connection configuration from file
/trunk/Db/MySQLDB.php |
---|
48,6 → 48,8 |
public function __construct() |
{ |
$this->readConfig(); |
$this->_dsn = "mysql:host={$this->_host}" |
. (!is_null($this->_dbname) ? ";dbname={$this->_dbname}" : '') |
. (!is_null($this->_charset) ? ";charset={$this->_charset}" : ''); |