This is my CDetailView and it has a lot of code in template
<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>array($model,$slika),
'attributes'=>array(
//'ID',
//'IDkorisnik',
array
(
'template'=>'alot of code',
),
),
)); ?>
How to implement this widget within that "template". Since that widget is an object, I cannot echo it.
<?php
$this->widget('application.extensions.gmap.GMap', array(
'id' => 'gmap',//id of the <div> container created
'label'=>$model->country.", ".$model->city,
'key'=>'ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA',
'address' => array
(
'address' => '',//address of the place
'city' => $model->city, //city
'country' => $model->country,
)
));
?>