Hi,
I’m using CLEditor to allow users to write better formatted noted, i.e. bold, italic, strike through etc.
When you save the form, you get shown the data in a view page (I dont know if this is standard Yii mechanics)
Problem is, that the data saved is in HTML to give the formatting etc, but I cant output it in the View as HTML, instead is TEXT - and you therfore see all the HTML code…
How do i edit my ?r=feedback/view page so that the atribute renders as html?
My view has this in it,
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
but if i open _view.php and change somethign like put hello world in the form, it doesnt appear when I load the page… so its like im not even editing the right page
I wanted to see if I could solve it by doing the following
<?php echo CHtml::encode($data->visit_feedback); ?>
to
<?php echo CHtml::decode($data->visit_feedback); ?>
##Update##
Mother…of…God… I was uploading to a new testing server, I forgot to look at the right server!! … Well, i’ve not done that for a very long time, doh! So now I can see the List showing HTML, great,
BUT,
I cant seem to do the same for the details list (zii.widgets.CDetailView ) …?