现在urllocalhost/think22/index.php/home/article/index/category/blog.html
想要匹配为localhost/think22/index.php/article/blog.html
应该怎么写?
'url_router_on' => true, //开启路由
'url_route_rules' => array( //定义路由规则
//求教
)
------解决方案--------------------
'url_router_on' => true, //开启路由
'url_route_rules' => array( //定义路由规则
blog' => array('index/category/blog'),
),
------解决方案--------------------
home/article/index/category/blog.html
这个url怎么解释?
home 控制器
article 方法名
后面是什么?
