Code Context try {
$this->_connection = new PDO(
$dsn,
$config = array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => true,
'flags' => array(),
'datasource' => 'Database/Mysql',
'salt' => '2737a496c6307a276e4a34bfd7b100cd',
'cipher' => '03446605441040886101',
'encoding' => 'utf8',
'settings' => array(
'sql_mode' => ''NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';'
),
'prefix' => ''
)
$flags = array(
(int) 12 => true,
(int) 1000 => true,
(int) 3 => (int) 2,
(int) 1002 => 'SET NAMES utf8'
)
$dsn = 'mysql:host=152.228.217.68;port=31984;dbname=snc-prod'
PDO::__construct() - [internal], line ??
Mysql::connect() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 188
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 278
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 105
Model::setDataSource() - CORE/Cake/Model/Model.php, line 3659
Model::__get() - CORE/Cake/Model/Model.php, line 918
AppController::loadUnBootSetting() - APP/Controller/AppController.php, line 176
AppController::loadingApplicationSettings() - APP/Controller/AppController.php, line 1068
AppController::beforeFilter() - APP/Controller/AppController.php, line 152
MagasinsController::beforeFilter() - APP/Controller/MagasinsController.php, line 24
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 682
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 80