I’m trying to add an extra attribute in my model, but without success.
Added to the model attribute:
... public $extraAttr; ...
and safe in rules
... array('extraAttr', 'safe'), ...
Even so, this attribute does not appear in:
I can only access it by:
But I need to access it by aattributes the model. How do?