Page.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. *
  7. * @copyright Copyright (c) 2016 FecShop Software LLC
  8. * @license http://www.fecshop.com/license/
  9. */
  10. return [
  11. 'page' => [
  12. 'childService' => [
  13. //'widget' => [
  14. //],
  15. 'asset' => [
  16. 'class' => 'fecshop\services\page\Asset',
  17. // 在js后面加一个v参数,修改js后,更改v参数,否则,浏览器会使用缓存。
  18. // /assets/dbdba3fa/js/js.js?v=2
  19. 'jsVersion' => 1,
  20. 'cssVersion' => 1,
  21. /**
  22. * @var string the root directory string the published asset files.
  23. * 设置: js和css的发布路径
  24. * 譬如设置为:'@appimage/assets',也可以将 @appimage 换成绝对路径
  25. */
  26. 'basePath' => '@webroot/assets',
  27. /**
  28. * @var string the base URL through which the published asset files can be accessed.
  29. * 设置: js和css的URL路径
  30. * 可以将 @web 换成域名 , 譬如 `http:://www/fecshop.com/assets`
  31. * 这样就可以将js和css文件使用独立的域名了【把域名对应的地址对应到$basePath】。
  32. */
  33. 'baseUrl' => '@web/assets',
  34. ],
  35. 'menu' => [
  36. 'displayHome' => [
  37. 'enable' => true, // 是否在菜单中显示home
  38. 'display'=> 'Home', // 显示对应的字符。
  39. ],
  40. /*
  41. * 在菜单前面部分(产品分类菜单的前面部分)的自定义菜单。参考behindCustomMenu里面的格式
  42. */
  43. 'frontCustomMenu' => [
  44. ],
  45. /*
  46. * 在菜单后面部分(产品分类菜单的前面部分)的自定义菜单
  47. */
  48. 'behindCustomMenu' => [
  49. /*[
  50. 'name' => 'custom menu', // 菜单名字
  51. 'urlPath' => '/my-custom-menu.html', // 菜单对应的url
  52. 'childMenu' => [ // 子菜单
  53. [
  54. 'name' => 'my custom menu 2',
  55. 'urlPath' => '/my-custom-menu-2.html',
  56. ],
  57. [
  58. 'name' => 'my custom menu 3',
  59. 'urlPath' => '/my-custom-menu-2.html',
  60. 'childMenu' => [
  61. [
  62. 'name' => 'my custom menu 3',
  63. 'urlPath' => '/my-custom-menu-2.html',
  64. ],
  65. [
  66. 'name' => 'my custom menu 3',
  67. 'urlPath' => '/my-custom-menu-2.html',
  68. ],
  69. ],
  70. ],
  71. ],
  72. ],*/
  73. ],
  74. ],
  75. ],
  76. ],
  77. ];