The difference between yii and tp:
Configuration:
Yii multiple configuration files, overlay configuration, multiple environment configuration, Different local online environment configurations, more flexible;
There is only one type of TP.
Page controls:
There are many page controls in Yii such as list/grid/detail, etc., which are convenient for typesetting and layout, and 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 tediousness, and Conducive to code specification;
tpgenerate the model using the command line: D:\phpStudy\PHPTutorial\WWW\fruit\public>php think make:model api/Image
get and post:
There are many ways to TP. For example, there are many ways to obtain parameters.
Yii is just one.
ORM:
TP’s ORM is both character-based and array-based. YII can only be arrays.
Verification layer:
YII is the rule of the model.
TP is the verification layer, introducing classes, and AOP aspect programming.
PHP Chinese website has a large number of free Yii introductory tutorials, everyone is welcome to learn!
The above is the detailed content of What are the differences between yii and tp?. For more information, please follow other related articles on the PHP Chinese website!