I’m new to Yii and still confused with some parts. What’s the correct/preferred way to return an image content type in Yii? I did this and it seemed to work:
$image = imagecreatefromjpeg($savedImageFullPath);
I don’t feel that this is the best way though. Is there another way to do this?