Home /View/index/index.html
路由1:<a href="{:U('list/4')}">showList</a><br/>
路由2:<a href="{:U('test/4/5')}">test</a><br/>
Home/Control/indexControl.class.php
function showList(){var_dump($_REQUEST);}
function test(){var_dump($_REQUEST); }
Home/Config/config.php
return array(
'URL_ROUTE_RULES' => array(
'list/:category\d' => 'Index/showList', //规则路由
'test/:category/:id' => 'Index/test', //规则路由
),
);
第一个链接能收到一个参数
第二个链接提示 无法加载模块:Test
求高人指点
最佳答案
