复制代码
那么如果访问:
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元

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver CS6
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software