Home  >  Article  >  Backend Development  >  ThinkPHP framework basics review_PHP tutorial

ThinkPHP framework basics review_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:56:201025browse

ThinkPHP Framework Basics Review

First of all, what we must know is the directory structure:

After we complete the decompression, the following directory will appear:

ThinkPHP framework basics review_PHP tutorial

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:

ThinkPHP framework basics review_PHP tutorial

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:

ThinkPHP framework basics review_PHP tutorial

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/987983.htmlTechArticleThinkPHP Framework Basics Review First, what we must know is the directory structure: After we complete the decompression, the following will appear Directory: This is the official manual directory explanation of tp, we can...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn