关于TP3.2中URL路由的问题

浏览:1520 发布日期:2014/04/23 分类:求助交流
如题 ,代码如下
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

求高人指点
最佳答案
评论( 相关
后面还有条评论,点击查看>>