Hi,
I’m having a hard time extending the RadioField with some readonly logic.
This code, working for the other fields, is not working:
class MyFieldField extends RadioField {
public function readonly() {
// Some code here to determine true or false
return true;
}
}
However, this code is working:
class MyFieldField extends RadioField {
public $readonly = true;
}
Of course I can’t put any advanced logic in the later approach. Also this is not consistent with the way other fields work.
Is this a bug with the RadioField or am I missing something here?
Thank you,
Georg
