hello friends
I’m trying to create a table in html in a view, but do not need it at no stylo css, how I can accomplish this?
thanks
hello friends
I’m trying to create a table in html in a view, but do not need it at no stylo css, how I can accomplish this?
thanks
can you explain it clearly with an example?
if you are using cgridview then use ‘cssFile’=>false, as a parameter.
I think the below match with your requires
$dataProvider=new CActiveDataProvider('Your model'); //or make your own array
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
'columns'=>array(
//column 1
array(
'name'=>'your column',
'headerHtmlOptions'=>array('style'=>'what every style you want'),
'htmlOptions'=>array('style'=>'what every style you want'),
//column2,
//..
),
));