use a controller for an img source

Hi everybody

I’m newbie to yii. i want to create a view to show user picture using a controller for security reasons, but i don’t know how to do it.

it should be something like this

<img scr="/controller/userid/image.jpg">

and I don’t know what to do in the controller exactly.

canyone have any ideas about this or any links to get some help.

thank you in advance

The simplest way would be to use my phpThumb extension mentioned in my signature. It has a show() method which does exactly that