Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
yii
base
Model
generateAttributeLabel
yii\base\Model::generateAttributeLabel PHP Method
Model Class Documentation
Mostra file
Open project: yiisoft/yii2
generateAttributeLabel()
public
method
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
generateAttributeLabel
(
string
$name
) :
string
$name
string
the column name
return
string
the attribute label
public function generateAttributeLabel($name) { return Inflector::camel2words($name, true); }
Model
activeAttributes
addError
addErrors
afterValidate
attributeHints
attributeLabels
attributes
beforeValidate
clearErrors
createValidators
fields
formName
generateAttributeLabel
getActiveValidators
getAttributeHint
getAttributeLabel
getAttributes
getErrors
getFirstError
getFirstErrors
getIterator
getScenario
getValidators
hasErrors
isAttributeActive
isAttributeRequired
isAttributeSafe
load
loadMultiple
offsetExists
offsetGet
offsetSet
offsetUnset
onUnsafeAttribute
rules
safeAttributes
scenarios
setAttributes
setScenario
validate
validateMultiple