Basic Review of ThinkPHP framework
First, we must know the directory structure:
After decompression, the following directory will appear:
This is an explanation of the tp official manual directory. We can skip to other files first. Here, we mainly use the ThinkPHP core library directory of php:
Then, under this very important directory, the following file directories are equally important to us:
This is the core directory of tp, and the next step is the entry file. Obviously, this entry file is much easier to find than the entry file of the zend framework, this entry file is actually provided to us on the surface of the decompressed directory. We can use it directly, and of course we can also write it ourselves, that is, the index file, note that Thinkphp must be introduced. the core file of the php framework, which contains all the tp framework configurations, is frequently used.
Then, the function of the portal file is that all pages must pass through this portal file. This is of great benefit. How can we determine whether the user has logged on legally before, A better solution is available here.
Finally, we 'd better open the entry file under our sequencer host, so we can see the cute: