Yii in yii2 is a framework core class, and the lowercase yii in yii2 is the namespace path; Yii has two main versions, namely 2.0 and 1.1, and the latest stable version of yii is the yii2 version .
Yii and yii in yii2:
Uppercase YII is a framework core class, lowercase \yii\ is Namespace path.
Yii has two major versions: 2.0 and 1.1. The first stable version released by yii is: 1.1.14 (released on August 11, 2013), and the latest stable version released by yii is: 2.0.0 (released on October 12, 2014).
Recommended: "yii Tutorial"
Features of the yii framework:
Fast
Yii only loads the functions you need. It has strong caching support. It's explicitly designed to work efficiently with AJAX.
Safety
Yii is safe by its standards. It includes input validation, output filtering, SQL injection and cross-site scripting prevention.
Professional
Yii helps you develop clean and reusable code. It follows the MVC pattern, ensuring a clear separation of logic and presentation layers.
The above is the detailed content of What is Yii in yii2. For more information, please follow other related articles on the PHP Chinese website!