Thinkphp 3.0 得取get的传值 $_GET['_URL_'][2]
2012-02-08 12:36
120 查看
http://serverName/News/archive/2012/01/15
如果 2012/01/15 为一个值,那么得到的传递值会有错误,有的会被解为方法
可以使用
$_GET['_URL_'][2]
$_GET['_URL_'][3]
$_GET['_URL_'][4]
从News开始为0
然后就这样可以得到任意一个/后面的值
如果 2012/01/15 为一个值,那么得到的传递值会有错误,有的会被解为方法
可以使用
$_GET['_URL_'][2]
$_GET['_URL_'][3]
$_GET['_URL_'][4]
从News开始为0
然后就这样可以得到任意一个/后面的值
相关文章推荐
- Thinkphp 3.0 得取最后的Sql 语句操作 echo $User->getLastSql();
- 'Invalid parameter not satisfying: URLString'网络请求的时候get使用特殊字符和汉字崩溃的恶心bug解决方法
- How to get new record's id
- android webView 图片加载不出来 后台报错Uncaught TypeError: Cannot call method 'getElementsByTagName' of null
- What's New in MoSync SDK 3.0
- var file_upl = document.getElementById('file_upl'); file_upl.select(); var realpath = d
- Request method 'GET' not supported
- 'GetCurSel' : is not a member of 'CTime'
- Jsoup.connect(url).get()解析html页面空格&bsp乱码问题
- my email address for getFreeLancer 's java project
- 解决方法!:getImageData on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
- ubuntu 出现 You might want to run `apt-get --fix-broken install' to correct these:
- Got an exception - java.lang.RuntimeException: Unable to get class information for @throws tag 'XXXException'.
- poj 1315 Don't Get Rooked
- Oracle 11gR2 RMAN Duplicate 触发PLS-00201: identifier 'DBMS_RCVCAT.GETDBID' must be declared 错误
- idhttp1.get('www.google.cn')时报 Invalid argument to date encode错误,如何解决。
- 配apache出错:libtool: link: `passwd/apr_getpass.lo' is not a valid libtool object
- [nQSError: 13043] Could not get repository password for CSF key 'repository.Train' from CSF: [46147]
- android JNI之 'GetObjectClass' in something not a structure or union
- thinkphp: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'