I do so without a framework:
Image.php
header('Content-Type: image/jpeg');
$imagem = imagecreatefromjpeg($_GET['image']);
// resize...
echo imagejpeg($image);
Index.php
<div>
<img src="image.php?image=path/image.jpg" />
</div>
The question is, how to do this in yii? Without using extensions, just a simple example.
Thanks