Display 2 icons in CGridView column

I want to display icons in a CGridView column, the following code works fine




'columns'=>array(

	...

	array(

	'header'=>'Action',

	'type'=>'html',

	'value'=>'CHtml::tag("a",array("class"=>"ico-small ico-edit edit_service_trigger", "href"=>"#"))',

	),

)



However, I have 2 icons to display, the following code will not work




'columns'=>array(

	...

	array(

	'header'=>'Action',

	'type'=>'html',

	'value'=>'CHtml::tag("a",array("class"=>"ico-small ico-edit edit_service_trigger", "href"=>"#")); CHtml::tag("a",array("class"=>"ico-small ico-delete delete_service_trigger", "href"=>"#"))',

	),

)



Any suggestions?

Try this:




$actionIcons = CHtml::tag("a",array("class"=>"ico-small ico-edit edit_service_trigger", "href"=>"#")). CHtml::tag("a",array("class"=>"ico-small ico-delete delete_service_trigger", "href"=>"#"));

'columns'=>array(

        ...

        array(

        'header'=>'Action',

        'type'=>'html',

        'value'=>$actionIcons,

        ),

)



Thank you, but not work. No icon displayed, since no html tag generated.

whuhacker your code in the first post is good… you just need to change the ; with a dot (string concatenation) and it will work…