12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- /**
- * !!!!!
- * !! 限制:
- * !! 1、不要出现()号的嵌套,不支持!
- * !! 2、括号外不要出现正则相关字符,如 ? ^等
- * !!!!!
- * 路由配置
- */
- return array(
- 'test' => array(
- 'c' => 'Test',
- ),
- 'test/(\d+)' => array(
- 'c' => 'Test',
- 'page' => '$1',
- ),
- 'product/([\d]+)' => array(
- 'c' => 'Detail_Index',
- 'productid' => '$1',
- ),
- 'product/([\d]+)/star([\d]+)' => array(
- 'c' => 'ReviewTypeList',
- 'productid' => '$1',
- 'star' => '$2',
- ),
- 'product/([\d]+)/star([\d]+)/([\d]+)' => array(
- 'c' => 'ReviewTypeList',
- 'productid' => '$1',
- 'star' => '$2',
- 'page' => '$4',
- ),
- 'product/([\d]+)/([\d]+)' => array(
- 'c' => 'Detail_ReviewList',
- 'productid' => '$1',
- 'page' => '$2',
- ),
- '([\w]+[/\w]+)/product-([\w]+)-([\d]+)-([\d]+)-([\d]+)-([\d]+).html' => array(
- 'c' => 'proList',
- 'a' => 'default',
- 'useType' => '$2',
- 'priceRange' => '$3',
- 'effectId' => '$5',
- 'subname' => '$1',
- 'brandId' => '$4',
- 'page' => '$6',
- ),
- );
|