Home > Article > PHP Framework > What is the difference between yii and thinkphp?
The difference between yii and thinkphp
Configuration: Yii multiple configuration files cover configuration, multiple environment configuration, local online environment configuration, more flexible; TP There is only one
page control: There are many page controls in Yii such as list/grid/detail, etc., which are convenient for typesetting and layout. There are many choices and targeted tp. I have never used it;
Scaffolding: Yii’s scaffolding is Gii , can generate code, omit the development cycle, reduce the complexity, and is also conducive to code standardization;
get and post: There are many ways to TP, such as obtaining parameters, many kinds; Yii is a
verification layer : YII is the rule of the model; TP introduces classes for the verification layer
ORM: TP’s ORM can be either characters or arrays; YII can only be arrays
Type conversion: Tp has one Type conversion is very convenient. The converter and auto-complete are very convenient.
ThinkPHP introduction
ThinkPHP is a fast, compatible and simple lightweight domestic PHP development framework. ThinkPHP was born to simplify enterprise-level application development and agile WEB application development.
ThinkPHP has been adhering to the simple and practical design principle since its birth. While maintaining excellent performance and minimal code, it also focuses on ease of use.
And has many original functions and features. With the active participation of the community team, it is continuously optimized and improved in terms of ease of use, scalability and performance.
Introduction to yii
Yii is a high-performance component-based PHP framework for developing large-scale Web applications. Yii is written in strict OOP and has complete library references and comprehensive tutorials. From MVC, DAO/ActiveRecord, widgets, caching, hierarchical RBAC, web services, to theming, I18N and L10N, Yii provides almost everything needed for today's Web 2.0 application development.
In fact, Yii is one of the most efficient PHP frameworks.
[Recommended tutorial: yii framework tutorial]
The above is the detailed content of What is the difference between yii and thinkphp?. For more information, please follow other related articles on the PHP Chinese website!