Basic review of ThinkPHP framework. The first thing we need to know about the basic review of the ThinkPHP framework is the directory structure: After We decompress the package, the following directory will appear: this is the explanation of the tp official Manual directory. we can review the basic review of the 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:
First of all, we must know the directory structure: After decompression, the following directory will appear: this is the official tp Manual directory explanation, we can...