Url.php 778 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * FecShop file.
  4. * @link http://www.fecshop.com/
  5. * @copyright Copyright (c) 2016 FecShop Software LLC
  6. * @license http://www.fecshop.com/license/
  7. */
  8. return [
  9. 'url' => [
  10. 'class' => 'fecshop\services\Url',
  11. 'showScriptName'=> true, // if is show index.php in url. if set false ,you must config nginx rewrite
  12. 'randomCount'=> 8, // if url key is exist in url write table , add a random string behide the url key, this param is define random String length
  13. // 子服务
  14. 'childService' => [
  15. 'rewrite' => [
  16. 'class' => 'fecshop\services\url\Rewrite',
  17. ],
  18. 'category' => [
  19. 'class' => 'fecshop\services\url\Category',
  20. ],
  21. ],
  22. ],
  23. ];