CostaRico / yii2-images

Yii2-images - behavior-based module for resizing, storing, caching and attaching images.
160 stars 98 forks source link

Class 'abeautifulsite\SimpleImage' not found #58

Closed AleksandrGol closed 7 years ago

AleksandrGol commented 7 years ago

Hi! Can't understand why.

$image = $data->getImage();
return "<img src='{$image->getUrl()}'>";

but $image->getPathToOrigin(); shows full path correctly. Please, help!

CostaRico commented 7 years ago

$image->getPathToOrigin() should return path to original file $data->getImage() should return Image object

what is the question exactly?

AleksandrGol commented 7 years ago

If $image = $data->getImage(); return "<img src='{$image->getUrl()}'>"; I get Class 'abeautifulsite\SimpleImage' not found (500 internal server error)

CostaRico commented 7 years ago

ok, got it it seems something changed in SImpleImage repo

https://github.com/CostaRico/yii2-images/issues/57

Please, I made a new release, pls, reinstall the package with composer and feedback me, thx a lot.

AleksandrGol commented 7 years ago

Yeah, it works! Thank you!