如何使用ThinkPHP3.2.3实现路由参数传递?
- 内容介绍
- 文章标签
- 相关推荐
本文共计94个文字,预计阅读时间需要1分钟。
使用ThinkPHP框架进行URL参数传递,以下为三种方式:
1. 使用数组形式:`U('Blog/cate', array('cate_id'=> 1, 'status'=> 1))`
2.使用字符串形式:`U('Blog/cate', 'cate_id=1&status=1')`
3.使用URL查询形式:`U('Blog/cate?cate_id=1&status=1')`
thinkphp-paramU('Blog/cate',array('cate_id'=>1,'status'=>1)) U('Blog/cate','cate_id=1&status=1') U('Blog/cate?cate_id=1&status=1')
本文共计94个文字,预计阅读时间需要1分钟。
使用ThinkPHP框架进行URL参数传递,以下为三种方式:
1. 使用数组形式:`U('Blog/cate', array('cate_id'=> 1, 'status'=> 1))`
2.使用字符串形式:`U('Blog/cate', 'cate_id=1&status=1')`
3.使用URL查询形式:`U('Blog/cate?cate_id=1&status=1')`
thinkphp-paramU('Blog/cate',array('cate_id'=>1,'status'=>1)) U('Blog/cate','cate_id=1&status=1') U('Blog/cate?cate_id=1&status=1')

