New Line Display on Text fields

Hi,

If the topic subject wasn’t clear enough, how to instruct CGridView or CDetailView to display a Text field but showing the new lines introduced during editing.

thanks much ;)

A topic about the subject:

http://www.yiiframework.com/forum/index.php?/topic/19667-how-to-nl2br-in-cgridview/

thanks that did the trick, here a sample:




 	$this->widget('zii.widgets.CDetailView', array( 

 		 		'data'=>$model,

 		 		'attributes'=>array(

 		 		  	'id',

 		 		 	array(

 		 		 	 	'name'=>'description',

 		 		 	 	'value'=>nl2br($model->description),

 						'type'=>'raw',

 		 	                ),

 		 		));