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 )!