roy90
(Toyol Roy)
#1
Why images does not show up?
Here the codes i have done…
<?php $this->widget(‘zii.widgets.CDetailView’, array(
'data'=>$model,
'attributes'=>array(
'username',
'email',
'joinDate',
'level_id',
array(
'label'=>'Avatar',
'type'=>'raw',
'value'=>CHtml::image('a/../avatar/'.$model->avatar,'DORE', array("width"=>100)),
),
),
)); ?>
ahmed201
(Rifajas)
#2
try this
<?php $this->widget
('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
'username',
'email',
'joinDate',
'level_id',
'path/avatar:image'
),
));
ahmed201
(Rifajas)
#3
have you tried whether the image exist in the location?