Gridview Custom Button Label


(G L Velinov) #1

Hello everyone,

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?


(Chandrantwins) #2

Hi,

Label attribute is not php code evaluation component. You must create your custom lable for doing this :)