I have cgridview custom button and I want to add in his label some info like this:
'label'=>'Name - $data->id',
Obviously this won’t work.
But I don’t know how to escape $data. I tried different ways but none of them do the trick.
Do you know how to do it?