2014-05-13 13:16:39 +02:00
|
|
|
<?php
|
|
|
|
|
2014-05-14 23:55:44 +02:00
|
|
|
return [
|
|
|
|
'components' =>
|
|
|
|
[
|
|
|
|
'db' =>
|
|
|
|
[
|
|
|
|
'connectionString' => 'mysql:host=localhost;dbname=db451718',
|
|
|
|
'username' => 'root',
|
|
|
|
'password' => '',
|
|
|
|
'enableProfiling' => true,
|
|
|
|
'enableParamLogging' => true,
|
|
|
|
'charset' => 'utf8',
|
|
|
|
//'emulatePrepare'=>true, // needed by some MySQL installations
|
|
|
|
'schemaCachingDuration' => 3600, // Performance with AR's
|
|
|
|
],
|
|
|
|
|
|
|
|
'errorHandler' =>
|
|
|
|
[
|
2014-06-04 09:33:24 +02:00
|
|
|
'errorAction' => 'msmain/debugerror',
|
2014-05-14 23:55:44 +02:00
|
|
|
],
|
|
|
|
|
2014-06-06 12:02:56 +02:00
|
|
|
'urlManager' =>
|
|
|
|
[
|
|
|
|
'rules' =>
|
|
|
|
[
|
|
|
|
'gii'=>'gii',
|
|
|
|
'gii/<controller:\w+>'=>'gii/<controller>',
|
|
|
|
'gii/<controller:\w+>/<action:\w+>'=>'gii/<controller>/<action>',
|
|
|
|
],
|
|
|
|
],
|
2014-05-14 23:55:44 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'modules' =>
|
|
|
|
[
|
|
|
|
'gii' =>
|
|
|
|
[
|
|
|
|
'class' => 'system.gii.GiiModule',
|
|
|
|
'generatorPaths' => ['bootstrap.gii'],
|
|
|
|
'password' => 'giipw',
|
|
|
|
'ipFilters' => ['127.0.0.1', '::1'],
|
|
|
|
],
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|