Home > Article > Backend Development > Yii Framework Official Guide Series 33 – Extending Yii: Overview
Extending Yii is a very common behavior in development. For example, when you write a new controller, you inherit the CController class Extended Yii; when you write a new component, you are inheriting CWidget or an existing component class. If the extension code is designed by a third-party developer for reuse, we call it extension (Extension).
An extension usually serves a single purpose. In Yii, he can be classified as follows:
Application components
Component
Controller
Action
Filter
Console command
Validator: The validator is a component inherited from the CValidator class.
Helper: A helper is a class with only static methods. It is similar to a global function using the class name as a namespace.
Modules: A module is a package with several class files and corresponding specialty files. A module is usually more advanced and has more advanced functions than a single component. For example, we can have a module with a complete set of user management functions.
Extensions can also be components that do not fall into any of the above categories. In fact, Yii is designed so carefully that almost every piece of its code can be extended and customized to suit specific needs.
Extension Series Tutorials:
Yii Framework Official Guide Series 34 - Extending Yii: Using Extensions
Yii Framework Official Guide Series 35 - Extending Yii: Creating Extensions
Yii Framework Official Guide Series 36 - Extending Yii: Using Third-Party Libraries
The above is the content of Yii Framework Official Guide Series 33 - Extending Yii: Overview. For more related content, please pay attention to PHP Chinese Net (www.php.cn)!