您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

68 行
2.5KB

  1. <?php
  2. return [
  3. 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
  4. 'components' => [
  5. 'user' => [
  6. 'class' => 'yii\web\User',
  7. 'identityClass' => 'common\models\User',
  8. 'enableAutoLogin' => true,
  9. 'identityCookie' => [
  10. 'name' => 'laboiteapain',
  11. 'domain' => '.'.Yii::getAlias('@domainName'),
  12. 'path' => '/',
  13. ]
  14. ],
  15. 'session' => [
  16. 'class' => 'yii\web\Session',
  17. 'name' => 'PHPLABOITEAPAINSESSID',
  18. 'cookieParams' => [
  19. 'domain' => '.'.Yii::getAlias('@domainName'),
  20. 'httpOnly' => true,
  21. ],
  22. ],
  23. 'cache' => [
  24. 'class' => 'yii\caching\FileCache',
  25. ],
  26. 'image' => [
  27. 'class' => 'yii\image\ImageDriver',
  28. 'driver' => 'GD', //GD or Imagick
  29. ],
  30. 'urlManagerProducer' => [
  31. 'class' => 'producer\components\UrlManagerProducer',
  32. 'subDomain' => Yii::getAlias('@producerSubdomain'),
  33. 'domainName' => Yii::getAlias('@domainName'),
  34. 'baseUrl' => Yii::getAlias('@baseUrl').Yii::getAlias('@baseUrlProducer'),
  35. 'enablePrettyUrl' => true,
  36. 'showScriptName' => false,
  37. 'enableStrictParsing' => false,
  38. 'rules' => [
  39. '<slug_producer:\w+>/' => 'site/index',
  40. '<slug_producer:\w+>/<controller>/<action>' => '<controller>/<action>',
  41. ],
  42. ],
  43. 'urlManagerFrontend' => [
  44. 'class' => 'common\components\UrlManagerCommon',
  45. 'subDomain' => Yii::getAlias('@frontendSubdomain'),
  46. 'domainName' => Yii::getAlias('@domainName'),
  47. 'baseUrl' => Yii::getAlias('@baseUrl').Yii::getAlias('@baseUrlFrontend'),
  48. 'enablePrettyUrl' => true,
  49. 'showScriptName' => false,
  50. 'enableStrictParsing' => false,
  51. 'rules' => [
  52. ],
  53. ],
  54. 'urlManagerBackend' => [
  55. 'class' => 'common\components\UrlManagerCommon',
  56. 'subDomain' => Yii::getAlias('@backendSubdomain'),
  57. 'domainName' => Yii::getAlias('@domainName'),
  58. 'baseUrl' => Yii::getAlias('@baseUrl').Yii::getAlias('@baseUrlBackend'),
  59. 'enablePrettyUrl' => true,
  60. 'showScriptName' => false,
  61. 'enableStrictParsing' => false,
  62. 'rules' => [
  63. ],
  64. ],
  65. ],
  66. 'language' => 'fr-FR',
  67. ];