How is the .html address access in thinkphp implemented? These two addresses in thinkphp open the login page. I want to know how to implement the .html address under the local publiccontrol. & nbsp; the default template file suffix of TP is: how to implement the .html address access in TMPL_TE thinkphp?
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.
------ Solution --------------------
The default template file suffix of TP is set to tmpl_template_suffix+'.html'
------ Solution --------------------
Isn't it a parameter string? Add it.
------ Solution --------------------
Reference:
Http://wz.37wan.com/server_list.html
Http://wz.37wan.com/server_list.php
Possible static pages
It may also be url rewriting.
------ Solution --------------------
Yes. you have a $ this-> display(, then login.html and loginexactly. of course, you can also set the suffix.