Echo Widget In Template Of Cdetailview

This is my CDetailView and it has a lot of code in template

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








			'template'=>'alot of code',



)); ?>

How to implement this widget within that "template". Since that widget is an object, I cannot echo it.


$this->widget('application.extensions.gmap.GMap', array(

	'id' => 'gmap',//id of the <div> container created

	'label'=>$model->country.", ".$model->city,


	'address' => array


		'address' => '',//address of the place

		'city' => $model->city, //city

		'country' => $model->country,




You can set the third parameter of widget method, see this reference:

thank you (Y)