CDetailView displays detailed content for a Model. The Model to be displayed can be CModel or an associative array. CDetailView determines which attributes of the Model need to be displayed in which format by configuring attributes. Each property can be configured using Name:Type:Label. Both Type and Label are optional. "Name" attribute name. "Label" is optional, the label name of the attribute. If there is no configuration, the attribute name is used as the label name. "Type" The type of the attribute, the displayed format is determined by the type. Types that can be used There are raw, text, ntext, html, date, time, datetime, boolean, number, email, image, url., etc., and text is used by default. This example modifies the above example Yii Framework Development Tutorial (30) Zii component-ListView example, Modify the columns of the display list
1. Recommended articles about DetailViewnnnnnn
Introduction: CDetailView displays detailed content for a Model. The Model to be displayed can be CModel or an associative array. CDetailView determines which attributes of the Model need to be displayed in which format by configuring attributes. Each property can be configured using Name:Type:Label. Both Type and Label are optional. "Name" attribute name. "Label" optional, the label name of the attribute. If not configured, use the attribute name as...
2. PHP Development Framework Yii Framework Tutorial (31) Zii Component-DetailView Example
##Introduction: CDetailView displays details for a certain Model content. The Model to be displayed can be CModel or an associative array. CDetailView determines which attributes of the Model need to be displayed in which format by configuring attributes.
3. How to get the detailView of personal information on YIIChina official website?
Introduction: The following is the display page of CDetailView of Yiichina's official profile: Pay attention to the right side. If the value is empty, it shows that it is not set. And it's pink. This is the effect of what I wrote myself: The main difference lies in the display of the value on the right. When there is no value on the right side of the official website, it is...
[Related Q&A recommendations]:
python - How to implement django elegantly log in Register?
ios - UISplitViewController, how to display only MasterView when the screen is vertical, and display both Master and Detail when the screen is horizontal
objective-c - iOS Why UISearchBar's protocol method always does not execute the following code
python - Confused about using cache to speed up (memcached) in django?
php - How to get the detailView of personal information on YIIChina official website?
The above is the detailed content of Recommended 3 articles about DetailView. For more information, please follow other related articles on the PHP Chinese website!