base\Model attributeLabels()

attributeLabels() public method

Returns the attribute labels.

Attribute labels are mainly used for display purpose. For example, given an attribute firstName, we can declare a label First Name which is more user-friendly and can be displayed to end users.

By default an attribute label is generated using generateAttributeLabel(). This method allows you to explicitly specify attribute labels.

Note, in order to inherit labels defined in the parent class, a child class needs to merge the parent labels with child labels using functions such as array_merge().

See also generateAttributeLabel().

public array attributeLabels ( )
return array

Attribute labels (name => label)

doc_Yii
2016-10-30 16:51:46
Comments
Leave a Comment

Please login to continue.