I’ve upload image using EPhpThumb extention
on form submit
I’ve return code like these in controller
$Image=CUploadedFile::getInstance($model,‘Image’);
$path = ‘/upload/Image/’.time().$Image;
[size=2]$ImagePath=Yii::app()->basePath.’…’.$path;[/size]
[size=2][b]
[/b][/size]
[size=2][b]
$thumb = Yii::app()->phpThumb->create($ImagePath);
$thumb->resize(100, 100);
$thumb->save();[/b][/size]
[size=2]
[/size]
[size=2]
[/size]
[size=2]But on [/size][size=2]$thumb = Yii::app()->phpThumb->create($ImagePath[/size][size=2]); this line get a error [/size][size=2]Image file not found:[/size][size=2]D:\wamp\www\testdrive\protected../upload/Image/1387201629test.jpg[/size]
In main.php under componet I’ve added
‘phpThumb’=>array(
‘class’=>‘ext.EPhpThumb.EPhpThumb’,
//‘options’=>array(optional phpThumb specific options are added here)
),