Last active
August 29, 2015 14:08
-
-
Save masiorama/1c27fe9b7c74be56d40d to your computer and use it in GitHub Desktop.
Yii: extend child model with parent's methods like rules, attributeLabel, etc... example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function attributeLabels() { | |
$labels = array( | |
'placeOfBirth' => 'Place Of Birth', | |
'notes' => 'Notes', | |
'status' => 'Status', | |
'studentID' => 'Student', | |
'entryYear' => 'Entry Year', | |
); | |
return array_merge($labels, parent::attributeLabels()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment