1
0
www.mikescher.com/www/protected/config/env/prod.php

27 lines
617 B
PHP
Raw Permalink Normal View History

2014-05-13 13:16:39 +02:00
<?php
2014-07-29 22:33:05 +02:00
require_once('protected/lib/ArrayX.php');
use Yiinitializr\Helpers\ArrayX;
2014-05-14 23:55:44 +02:00
return [
'components' =>
[
'db' =>
ArrayX::merge(
[
2015-12-31 01:58:25 +01:00
'connectionString' => 'mysql:host=localhost;dbname=website_main',
'enableProfiling' => false,
'enableParamLogging' => false,
'charset' => 'utf8',
'emulatePrepare' => true, // needed by some MySQL installations
'schemaCachingDuration' => 3600, // Performance with AR's
],
require_once('database-access.secret.php') // DB Username & PW
),
2014-05-13 13:16:39 +02:00
2014-05-14 23:55:44 +02:00
'errorHandler' =>
[
'errorAction' => 'msmain/error',
2014-05-14 23:55:44 +02:00
],
],
];