Home > PHP Framework > ThinkPHP > body text

Is thinkphp a development tool?

藏色散人
Release: 2021-12-21 11:39:24
Original
1864 people have browsed it

thinkphp is not a development tool, but an open source lightweight PHP framework that was born to simplify enterprise-level application development and agile WEB application development; this framework can support server environments such as windows/Unix/Linux, and Supports MySql, PgSQL, Sqlite databases.

Is thinkphp a development tool?

#The operating environment of this article: Windows 7 system, thinkphp v5.1 version, Dell G3 computer.

Is thinkphp a development tool?

thinkphp is not a development tool, but an open source lightweight PHP framework that was born to simplify enterprise-level application development and agile WEB application development.

ThinkPHP is a fast, compatible and simple lightweight domestic PHP development framework. It was born in early 2006. It was originally named FCS. It was officially renamed ThinkPHP on New Year's Day in 2007. It is released under the Apache2 open source agreement and transplanted from the Struts structure. It has made improvements and improvements, and also borrowed many excellent foreign frameworks and models, using object-oriented development structure and MVC model, integrating the ideas of Struts and TagLib (tag library), RoR's ORM mapping and ActiveRecord model.

ThinkPHP can support server environments such as windows/Unix/Linux. The official version requires PHP5.0 or above. It supports MySql, PgSQL, Sqlite databases and PDO extensions. The ThinkPHP framework itself has no special module requirements. The specific application system operating environment requirements depend on the modules involved in development.

As an overall development solution, ThinkPHP can solve most needs in application development, because it includes the underlying architecture, compatibility processing, base class library, database access layer, template engine, caching mechanism, and plug-ins Mechanism, role authentication, form processing and other commonly used components, and it is more convenient for cross-version, cross-platform and cross-database transplantation. And each component is carefully designed and perfected, and the application development process only needs to focus on your business logic.

Layered Architecture

ThinkPHP’s layered architecture adopts a three-layer architecture model:

  • Presentation layer

Includes template views, user interfaces, JS, Flash, etc. Through the support of the template engine, tag definitions can be used to simplify the definition of the presentation layer.

  • Business layer

Includes business interface layer, business logic layer, entity layer, and data access layer Action controller As the business interface layer, it provides the entrance to various business operations of the system. Therefore, it is not recommended to write too much business logic code in the controller class, although it is difficult to strictly control it. The specific business logic should be encapsulated into the data access object (Dao) class for implementation. If it is too complicated, you can also wrap the sub-business in the Helper class and call it uniformly. The business processing process generally constructs business entity objects (such as Vo objects), and access to business entity objects is completed through the data access layer. The data access layer establishes a mapping relationship between entity objects and database data, and encapsulates common data operations.

  • Data layer

The supported databases are MySql, MsSql, PgSql, Oracle, and Sqlite, and the latest version is already available PDO support and database selection have nothing to do with business logic.

Recommended learning: "The latest 10 thinkphp video tutorials"

The above is the detailed content of Is thinkphp a development tool?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template