How is the .html address access in thinkphp implemented? This is from thinkphp.
Both addresses open the login page.
The above is the login method in the public control of access.
I want to know how the address of the .html address is implemented.
Reply to discussion (solution)
The default template file suffix of TP is set to tmpl_template_suffix+'.html'
The default template file suffix of TP is set to tmpl_template_suffix+'.html'
Isn't this public controller a folder? What is the next login.html file?
Is this s = "'' not a tp routing rule?
Excuse me, why are the following two addresses pointing to the same page?
Http://wz.37wan.com/server_list.html
Http://wz.37wan.com/server_list.php
Isn't it a parameter string? Add it.
Http://wz.37wan.com/server_list.html
Http://wz.37wan.com/server_list.php
Possible static pages
It may also be url rewriting.
Yes. you have a $ this-> display(, then login.html and loginexactly. of course, you can also set the suffix.