Home > PHP Framework > YII > What are the disadvantages of yii2?

What are the disadvantages of yii2?

青灯夜游
Release: 2020-07-18 11:11:03
Original
3534 people have browsed it

Disadvantages of yii2: 1. Less guidance and consideration for the Model layer; 2. Fewer document examples; 3. Too much English; 4. Requires proficiency in PHP technology and proficiency in OOP programming; 5. View It is not an ideal view. The ideal view may only be html code and will not involve PHP code.

What are the disadvantages of yii2?

yii2 is a high-performance component-based PHP framework for developing large-scale Web applications. Yii is written in strict OOP and has complete library references and comprehensive tutorials.

From MVC, DAO/ActiveRecord, widgets, caching, hierarchical RBAC, web services, to theming, I18N and L10N, Yii provides almost everything needed for today's Web 2.0 application development.

In fact, Yii is one of the most efficient PHP frameworks.

Disadvantages of yii2

1. Less guidance and consideration for the Model layer

2. Fewer document examples

3. Too much English

4. Requires proficiency in PHP technology and proficiency in OOP programming!

5. View is not an ideal view. The ideal view may only be html code and will not involve PHP code.

Advantages of yii2

Uses new technologies and standards such as PHP namespace, Trait, PSR standard, Composer and Bower package manager.

Implemented new architecture and new models such as dependency injection, dependency injection container and service locator (Service Locator).

Yii2.0 attaches great importance to security and adopts a series of measures to effectively prevent SQL injection, XSS attacks, CSRF attacks, cookie tampering, etc.

It widely supports various SQL and NOSQL databases, efficiently implements Active Record and other database query and operation interfaces, and provides functions such as database migration, replication, and read-write separation.

A fully standards-compliant RESTful API can be implemented with a minimal amount of code.

Supports caching mechanisms of various granularities and media.

Provides a variety of authentication and authorization methods based on cookie and token-based authentication, RBAC and other permission control methods, and supports OpenID, OAuth1, OAuth2, etc.

Supports Bootstrap, jQuery UI, and provides a wealth of Widgets for use.

Complete international support, providing time, plural and other formatting tools that comply with ICU standards, as well as functions such as message translation and view translation.

In addition to supporting the two mainstream PHP template engines Twig and Smarty, developers can also write their own extensions to support other engines.

Provides efficient development tools such as Yii debugging toolbar, Gii code generator and document generator for hard-working coders.

Integrates Codeception and Faker, and combines with DB Migration to provide a fixture framework to facilitate test development.

Provides a simple application template and an advanced application template, which are suitable for different development scenarios and can help developers build their own applications as soon as possible.

Recommended related article tutorials: "yii Framework Tutorial", "PHP Tutorial"

The above is the detailed content of What are the disadvantages of yii2?. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template