route.inc.php 1003 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * !!!!!
  4. * !! 限制:
  5. * !! 1、不要出现()号的嵌套,不支持!
  6. * !! 2、括号外不要出现正则相关字符,如 ? ^等
  7. * !!!!!
  8. * 路由配置
  9. */
  10. return array(
  11. 'test' => array(
  12. 'c' => 'Test',
  13. ),
  14. 'test/(\d+)' => array(
  15. 'c' => 'Test',
  16. 'page' => '$1',
  17. ),
  18. 'product/([\d]+)' => array(
  19. 'c' => 'Detail_Index',
  20. 'productid' => '$1',
  21. ),
  22. 'product/([\d]+)/star([\d]+)' => array(
  23. 'c' => 'ReviewTypeList',
  24. 'productid' => '$1',
  25. 'star' => '$2',
  26. ),
  27. 'product/([\d]+)/star([\d]+)/([\d]+)' => array(
  28. 'c' => 'ReviewTypeList',
  29. 'productid' => '$1',
  30. 'star' => '$2',
  31. 'page' => '$4',
  32. ),
  33. 'product/([\d]+)/([\d]+)' => array(
  34. 'c' => 'Detail_ReviewList',
  35. 'productid' => '$1',
  36. 'page' => '$2',
  37. ),
  38. '([\w]+[/\w]+)/product-([\w]+)-([\d]+)-([\d]+)-([\d]+)-([\d]+).html' => array(
  39. 'c' => 'proList',
  40. 'a' => 'default',
  41. 'useType' => '$2',
  42. 'priceRange' => '$3',
  43. 'effectId' => '$5',
  44. 'subname' => '$1',
  45. 'brandId' => '$4',
  46. 'page' => '$6',
  47. ),
  48. );