addons.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. return [
  3. 'autoload' => false,
  4. 'hooks' => [
  5. 'upgrade' => [
  6. 'cms',
  7. ],
  8. 'app_init' => [
  9. 'cms',
  10. ],
  11. 'view_filter' => [
  12. 'cms',
  13. ],
  14. 'user_sidenav_after' => [
  15. 'cms',
  16. ],
  17. 'xunsearch_config_init' => [
  18. 'cms',
  19. ],
  20. 'xunsearch_index_reset' => [
  21. 'cms',
  22. ],
  23. ],
  24. 'route' => [
  25. '/cms/$' => 'cms/index/index',
  26. '/cms/t/[:diyname]$' => 'cms/tag/index',
  27. '/cms/p/[:diyname]$' => 'cms/page/index',
  28. '/cms/s$' => 'cms/search/index',
  29. '/cms/d/[:diyname]$' => 'cms/diyform/index',
  30. '/cms/d/[:diyname]/post' => 'cms/diyform/post',
  31. '/cms/d/[:diyname]/[:id]' => 'cms/diyform/show',
  32. '/cms/special/[:diyname]' => 'cms/special/index',
  33. '/u/[:id]' => 'cms/user/index',
  34. '/cms/[:diyname]$' => 'cms/channel/index',
  35. '/cms/[:catename]/[:id]$' => 'cms/archives/index',
  36. '/example$' => 'example/index/index',
  37. '/example/d/[:name]' => 'example/demo/index',
  38. '/example/d1/[:name]' => 'example/demo/demo1',
  39. '/example/d2/[:name]' => 'example/demo/demo2',
  40. ],
  41. 'priority' => [],
  42. ];