main-local.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. $config = [
  3. 'components' => [
  4. 'request' => [
  5. // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
  6. 'cookieValidationKey' => 'o83yA7NsYp3sNfG9AjO8hbXq5ejTAvyt',
  7. ],
  8. 'dbCrm' => require(__DIR__ . '/../../common/config/db-xcrm.php'),
  9. 'mailer' => [
  10. 'class' => 'yii\swiftmailer\Mailer',
  11. 'useFileTransport' => false,
  12. 'transport' => [
  13. 'class' => 'Swift_SmtpTransport',
  14. 'host' => 'smtp.exmail.qq.com',
  15. // 'username' => 'admin@trends-fx.com',
  16. 'username' => 'admin@chong-hing.com',
  17. 'password' => 'Chonghink99',
  18. 'port' => '465',
  19. 'encryption' => 'ssl',
  20. ],
  21. 'messageConfig' => [
  22. 'charset' => 'UTF-8',
  23. 'from' => ['admin@chong-hing.com' => '創興']
  24. ],
  25. ],
  26. ],
  27. ];
  28. if (YII_ENV_DEV) {
  29. // configuration adjustments for 'dev' environment
  30. $config['bootstrap'][] = 'debug';
  31. $config['modules']['debug'] = [
  32. 'class' => 'yii\debug\Module',
  33. ];
  34. $config['bootstrap'][] = 'gii';
  35. $config['modules']['gii'] = [
  36. 'class' => 'yii\gii\Module',
  37. ];
  38. }
  39. return $config;