Open new window using CHtml::link inside GridView

further to the same topic:

both of the following code inside GridView are not working

code 1:




        array(

            'name'  => 'url',

            'value' => 'CHtml::link($data->desc, $data->url, array(target=>_blank))',

            'type'  => 'html',

        ),            



code 2:




        array(

            'name'  => 'url',

            'value' => 'CHtml::link($data->desc, $data->url, array(target=>_blank))',

            'type'  => 'url',

        ),            



Use ‘type’=>‘raw’

/Tommy

Thanks, Tommy!

Yii is beautiful.