Home  >  Article  >  PHP Framework  >  The difference between yii and tp framework

The difference between yii and tp framework

王林
王林Original
2019-11-04 15:10:103951browse

The difference between yii and tp framework

Configuration: Yii multiple configuration files, coverage configuration, multiple environment configuration, local online environment configuration, more flexible; there is only one TP.

Page controls: There are many page controls in Yii such as list/grid/detail, etc., which are convenient for typesetting and layout. There are many targeted choices; tp has never been used;

Scaffolding: Yii’s scaffolding is Gii, which can generate code, omit the development cycle, reduce complexity, and is also conducive to code standardization;

tp generates models using the command line:

D:\phpStudy\PHPTutorial\WWW\fruit\public>php think make:model api/Image

get and post: TP has many ways, such as many ways to obtain parameters; Yii is just one, TP’s ORM can accept both characters and arrays; YII can only use arrays

Verification layer: YII is the rule of the model, TP introduces the class for the verification layer

ORM: String or array used by TP, array used by Yii

Type conversion: Tp has a very convenient type conversion converter and automatic completion.

Recommended tutorial: yii tutorial

The above is the detailed content of The difference between yii and tp framework. For more information, please follow other related articles on the PHP Chinese website!

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