Here is what I currently have:
$columns[] = array(
'header' => 'Share',
'type' => 'html',
'value' => "CHtml::link(CHtml::image('http://www.mysite.com/images/icons/fb.jpg'),'#',array())",
);
what I want to happen is, add the twitter share button as well, just beside that fb button. How to do that?
You can use a
CButtonColumninstead:The
templatedecides of course the buttons to be displayed in the column, andbuttonsdescribes the configuration for each button. So in general we specify:For each button’s configuration we can specify the
label,url,imageUrl,options,click,visible, this is already given in the documentation link forbuttons. Usingclickwe can specify a js function to be invoked when the button is clicked.