no message
parent
536895457b
commit
172be1414f
|
@ -53,7 +53,7 @@ abstract class Model
|
||||||
$option=array();
|
$option=array();
|
||||||
$timeout=time() + 20;
|
$timeout=time() + 20;
|
||||||
if ($db === null) {
|
if ($db === null) {
|
||||||
$dsn = 'mysql:host=' . Config::DB_HOST . ';dbname=' . Config::DB_NAME . ';charset=utf8';
|
$dsn = 'mysql:host=' . Config::DBUrl() . ';dbname=' . Config::DB_NAME . ';charset=utf8';
|
||||||
try {
|
try {
|
||||||
$db = new PDO($dsn, Config::DB_USER, Config::DB_PASSWORD, $ssl);
|
$db = new PDO($dsn, Config::DB_USER, Config::DB_PASSWORD, $ssl);
|
||||||
//$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
//$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
|
|
Loading…
Reference in New Issue