Multiple Url On Cgridview

I wanna put 2 or 3 url’s in one column of cgridview, i tried some like this…

$this->widget('zii.widgets.grid.CGridView', array(


'columns' => array(

array( 'name'=> 'test',

	'type' => 'raw',

	'value' => 'CHtml::link("aaa","aaa", array("id"=>"aaa")); CHtml::link("bbb","bbb", array("id"=>"bbb"))',			





but just appear "aaa" link an not "bbb" link


I havent tried it but probably something like this would work:


$links = CHtml::link("aaa","aaa", array("id"=>"aaa"));

$links .= CHtml::link("bbb","bbb", array("id"=>"bbb"));


// and then in your widget:


'value' => '$links'


'value' => function ($data) {

  return implode(' ', array(

    CHtml::link('link1', array()),

    CHtml::link('link2', array())