Odd question but here it goes. I would like to set up multiple arrays of labels for one model and then switch between them.
What i need is:
public function attributeLabels_1(){
array(
'line_1'=>'Authentication Number'
)
}
public function attributeLabels_2(){
array(
'line_1'=>'Receipt Number'
)
}
Is this possible and if so how would you change which array is used when?
Many thanks.
I don’t remember if the list returned by
attributeLabels()is cached somewhere, if it’s not, then this should work: