In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
In this issue, the editor will bring you the basic knowledge about quick start ThinkPHP3.1. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Among today's many MVC frameworks, ThinkPHP is a fast and simple lightweight PHP development framework based on MVC and object-oriented. It follows the Apache2 open source protocol. Since its birth, it has been adhering to simple and practical design principles. While maintaining excellent performance and simple code, it pays special attention to development experience and ease of use, and has many original functions and features, which provides strong support for WEB application development. Is the first choice for many PHP developers. This paper gives a brief introduction to the basic knowledge of ThinkPHP3.1.
1. Directory structure
The latest version of ThinkPHP can be downloaded from the official website (http://thinkphp.cn/down/framework.html) or Github (https://github.com/liu21st/thinkphp/downloads).
Extract the downloaded files to your WEB directory (or any directory is fine). The directory structure of the framework is as follows:
├─ ThinkPHP.php framework entry file ├─ Common framework public file ├─ Conf framework configuration file ├─ Extend framework extension directory ├─ Lang core language pack directory ├─ Lib core class library │ ├─ Behavior core behavior class library │ ├─ Core core base class library │ ├─ Driver built-in driver │ │ ├─ Cache built-in cache driver │ │ ├─ Db built-in number According to the library driver │ │ ├─ TagLib built-in tag driver │ │ └─ Template built-in template engine driver │ └─ Template built-in template engine └─ Tpl system template directory
Note that the framework's common entry file, ThinkPHP.php, cannot be executed directly, and it can only work properly when called in the project entry file (described later), which is a mistake that many novices can easily make.
two。 Entry file
Before you start, you need a Web server and a PHP runtime environment. If you don't have it yet, we recommend using the integrated development environment WAMPServer (a development suite that integrates Apache, PHP and MySQL, and supports switching between multiple PHP, MySQL and Apache versions) to use ThinkPHP for local development and testing.
Next, we first create an app subdirectory under the WEB root directory (this app is our project name), and then create an index.php file under that directory, adding a simple line of code:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.