base\Model generateAttributeLabel()

generateAttributeLabel() public method

Generates a user friendly attribute label based on the give attribute name.

This is done by replacing underscores, dashes and dots with blanks and changing the first letter of each word to upper case. For example, 'department_name' or 'DepartmentName' will generate 'Department Name'.

public string generateAttributeLabel ( $name )
$name string

The column name

return string

The attribute label

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

Please login to continue.