Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Is thinkphp a development tool?

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you "thinkphp is not a development tool", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "thinkphp is not a development tool" this article.

Thinkphp is not a development tool, but an open source lightweight PHP framework born to simplify enterprise application development and agile WEB application development; the framework can support server environments such as windows/Unix/Linux, and supports MySql, PgSQL, Sqlite databases.

This article operating environment: Windows7 system, thinkphp v5.1, Dell G3 computer.

Thinkphp is not a development tool, but an open source lightweight PHP framework born to simplify enterprise application development and agile WEB application development.

ThinkPHP is a fast, compatible and simple lightweight domestic PHP development framework, born in early 2006, formerly known as FCS. In 2007, New Year's Day officially changed his name to ThinkPHP, released in accordance with the Apache2 open source agreement, transplanted from Struts structure and made improvements and improvements. At the same time, it also draws lessons from many excellent foreign frameworks and patterns, using object-oriented development structure and MVC pattern. It integrates the idea of Struts and TagLib (tag library), ORM mapping of RoR and ActiveRecord mode.

ThinkPHP can support server environments such as windows/Unix/Linux. The official version needs the support of PHP5.0 or above, and supports MySql, PgSQL, Sqlite databases and PDO extensions. ThinkPHP framework itself does not have any special module requirements. The specific application system running environment requirements depend on the modules involved in the development.

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

Hierarchical architecture

The hierarchical architecture of ThinkPHP adopts a three-tier architecture model:

Presentation layer

Including template view, user interface, JS, Flash, etc. Through the support of the template engine, you can use tag definitions to simplify the definition of the presentation layer.

Business layer

Including business interface layer, business logic layer, physical layer, data access layer Action controller as the business interface layer, provides the entrance of 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. The specific business logic should be encapsulated in the data access object (Dao) class, and if it is too complex, the sub-business can be packaged in the Helper class and called uniformly. Business processes generally construct business entity objects (such as Vo objects), and access to business entity objects is done through the data access layer. The data access layer establishes a mapping relationship between entity objects and database data, and encapsulates general data operations.

Data layer

Supported databases are MySql, MsSql, PgSql, Oracle, Sqlite, the latest version has provided support for PDO, the choice of the database has nothing to do with business logic.

These are all the contents of the article "is thinkphp a Development tool?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report