[size=“2”]i use [/size][size=“3”][size=“2”]image-displayer[/size][/size][size=“2”] extension. the image only show the title as picture. can anyone give me advice where i do wrong in my code [/size] [size=“2”]
_view.php[/size]
<?php $this->widget('saimagedisplayer', array(
'image' => '21.png',
'size' => 'tiny',
'displayImage' => true,
'title' => 'My super title',
)); ?>
[size="2"]it show the name/title "21.png" as picture. it doesnot show the real picture. [/size][size="2"]i wonder why is that happen. below is my main code.[/size]
main.php
'import'=>array(
....
'application.helpers.*', // yii image
'ext.saimagedisplayer.*',// SAImageDisplayer
),
'components'=>array(
...
'widgetFactory'=>array(
'widgets'=>array(
'saimagedisplayer'=>array(
'baseDir' => 'images',
'originalFolderName'=> 'originals',
'sizes' =>array(
'tiny' => array('width' => 40, 'height' => 30),
'big' => array('width' => 640, 'height' => 480),
'thumb' => array('width' => 400, 'height' => 300),
),
),
),
),
'image'=>array(
'class'=>'application.extensions.image.CImageComponent',
// GD or ImageMagick
'driver'=>'GD',
// ImageMagick setup path
//'params'=>array('directory'=>'/opt/local/bin'),
'params'=>array('directory'=>'C:/Program Files (x86)/ImageMagick-6.8.5-Q16'),
),
),