控制器 IndexController.class.php:
public function index(){
echo U('Index/index', array('uid' => 1), '', true);
die;
}
1、配置 D:\wamp\www\wish\Index\Common\Conf\config.php
'URL_MODEL' => 0
浏览 http://localhost/wish/index.php/Home/Index/index/uid/2
显示:http://localhost/wish/index.php?m=Home&c=Index&a=index&uid=1
2、配置 D:\wamp\www\wish\Index\Common\Conf\config.php
'URL_MODEL' => 1
浏览 http://localhost/wish/index.php/Home/Index/index/uid/2
显示:http://localhost/wish/index.php/Home/Index/index/uid/1
3、配置 D:\wamp\www\wish\Index\Common\Conf\config.php
'URL_MODEL' => 2
浏览 http://localhost/wish/index.php/Home/Index/index/uid/2
显示:http://localhost/wish/Home/Index/index/uid/1