Home> PHP Framework> YII> body text

The difference between yii and thinkphp

王林
Release: 2020-02-26 15:11:36
Original
2661 people have browsed it

The difference between yii and thinkphp

The differences are as follows:

Configuration: Yii multiple configuration files, coverage configuration, multiple environment configuration, local and 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; tp has not been used;

Scaffolding: Yii's scaffolding is Gii , can generate code, omit the development cycle, reduce complexity, and also facilitate code standardization;

(Recommended tutorial:yii framework)

tp generates models using the command line :D:\phpStudy\PHPTutorial\WWW\fruit\public>php think make:model api/Image;

get and post: There are many ways to get and post: TP, such as many ways to get parameters; Yii is just one, TP The ORM can support both characters and arrays; YII can only support arrays;

Verification layer: YII is the rule of the model, and TP introduces classes for the verification layer;

ORM: The use of TP String or array, array used by Yii;

For more programming-related content, please pay attention to theProgramming Introductioncolumn on the php Chinese website!

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

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!