Home > php教程 > php手册 > thinkphp路由规则表达式

thinkphp路由规则表达式

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 11:39:19
Original
1826 people have browsed it

复制代码
那么如果访问:

thinkphp路由规则表达式原理怎么替换的?
然后,我们访问:

http://serverName/index.php/new/8

复制代码
会匹配到第一个路由规则,实际执行的效果等效于访问:

http://serverName/index.php/News/read/id/8

复制代码
当访问:

http://serverName/index.php/new/hello

复制代码
会匹配到第二个路由规则,实际执行的效果等效于访问:

http://serverName/index.php/News/read/name/hello

复制代码
那么如果访问:

http://serverName/index.php/new/2012/03

复制代码
是否会匹配第三个路由规则呢?我们期望的实际执行的效果能够等效于访问:

http://serverName/index.php/News/archive/year/2012/month/03

AD:真正免费,域名+虚机+企业邮箱=0元

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template