How to implement the thinkphp framework that can be accessed by entering a Chinese name in the browser address bar

Source: Internet
Author: User
How to implement the thinkphp framework and enter the Chinese-style method name in the browser address bar to access every html page corresponding to a php file if native php is used, which is troublesome.
The thinkphp framework can write all view operations into a controller class and then directly call the controller class method in the address bar.
I want to know how it works?






Reply to discussion (solution)

Determine the classes and methods to be called Through URL routing and call them. The principle is that simple.

I have read it again. Does the tp framework determine the url through an index. php file to jump to different methods?

Access that module based on m and call the method based on the ReflectionMethod used by c and.
You can find it in \ ThinkPHP \ Library \ Think \ App. class. php.

The above is how to implement the thinkphp framework that can be accessed by entering the Chinese name of the class in the browser address bar. For more information, see The PHP Chinese website (www.php1.cn )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.