CHtml image not working firefox or opera


echo $person_in_the_room->username.' '.CHtml::image(Yii::app()->request->baseUrl.'\images\tick.jpg').'<br/>';

I here’s the line of code I’m using, found it in the reference material. Any idea why the image doesn’t show in firefox or opera, but does in chrome and safari

maybe it is because of wrong slashes in your generated url… it should be ‘/’, not ‘\’

That made no difference, you see anything else it might be?

Used a different image, a gif, that worked.