Cdetailview shows the details for a model. The model to be displayed can be either a cmodel or an associative array. Cdetailview configures attributes to determine which properties of the model need to be displayed in what format. Each property can be configured by using Name:Type:Label. Where both type and label are optional. Name of the "name" property. " Label "Optionally, the label name of the property, and if it is not configured, use the property name as the label." Type property, which determines the format of the display by type formatter. The types you can use are raw, text, ntext, HTML, date, Time, DateTime, Boolean, number, email, image, u Rl. And so on, the text is used by default. This example modifies the previous example Yii Framework development Tutorial (zii) component-listview example, modifying the columns of the display list
1. PHP Development Framework Yii Framework Tutorial (zii) Component-detailview Example
Summary: Cdetailview displays detailed content for a model. The model to be displayed can be either a cmodel or an associative array. Cdetailview configures attributes to determine which properties of the model need to be displayed in what format.
"Related question and answer recommendation":