Home  >  Article  >  PHP Framework  >  What are the differences between yii and tp?

What are the differences between yii and tp?

尚
Original
2019-12-16 14:32:443779browse

What are the differences between yii and tp?

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!

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
Previous article:How to register in yiiNext article:How to register in yii