First of all, what we must know is the directory structure:
After we complete the decompression, the following directory will appear:
This is the official manual directory explanation of tp. We don’t need to look at other files first. Here, we mainly use the ThinkPHP framework directory of PHP’s core library:
Then under this very important directory, there are the following file directories that are equally important to us:
This is the core directory of tp. Next is the entry file. Obviously, this entry file is much easier to find than the entry file of the zend framework. So this entry file is actually given to us on the surface of the decompression directory. , we can use it directly, or of course we can write it ourselves, which is the index file. What we must pay attention to is that we must introduce the Thinkphp.php core file of the framework, because it contains all the TP framework configuration. We are Use it frequently.
Then the function of the entry file is that all pages must go through this entry file. This has great benefits. Is it comparable to how we used to judge whether the user logged in legally? There is obviously a better solution here. solution.
Finally, it is best for us to open the entry file under our own sequel host, and then we will see the cute one: