Sunday, December 15, 2013

CGridView is striping out the HTML tags : Solved

The solution is to specify the column type as "raw":


$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$dataProvider,
    'columns'=>array(
        array(            
            'name'=>'column1',
            // call the method 'getLink' from a model.
            'value'=>array($model, 'getLink'), 
            'type'=>'raw',
        ),
    ),
));

1 comment:

  1. I am very ecstatic when I am reading this blog post because it is written in a good manner and the writing topic for the blog is excellent.
    Thanks for sharing valuable information. Also get to know about Magento 2 Wordpress Integration Services

    ReplyDelete