I'm using Yii Framework and I have custom .php file with header('Content-type: image/png'); Actually it returns an image.
I want in my view see that image this way:
<img src="path/to/custom/image.php"/>
Where should I put my custom php file? And how I should set it's path?