Home > Article > PHP Framework > The difference between tp and yii
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, and the selection is more targeted. I have never used tp;
Scaffolding: Yii's scaffolding is Gii, which can generate code and omit the development cycle. Reducing tediousness 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 characters or arrays, but YII can only use arrays;
Verification layer: YII is the rule of the model, TP is the verification layer, introduces classes, and AOP-based programming;
ORM: String or array used by TP, array used by Yii;
Type conversion: Tp has a type conversion, which is very convenient. The converter and self-complete are very convenient;
Recommended tutorial: yii framework tutorial
The above is the detailed content of The difference between tp and yii. For more information, please follow other related articles on the PHP Chinese website!