In keeping with the MVC approach, a model in Yii is intended for storing or temporarily representing application data.
In keeping with the MVC approach, a model in Yii is intended for storing or temporarily representing application data, as well as defining the busines rules by which the data must abide.
Yii models have the following basic features:
- Attribute declaration: a model defines what is considered an attribute.