CHtml::image

Simple deal… I just want to display an image. I’m using:




<?php echo CHtml::image(Yii::app()->request->baseUrl.'/images/User.png', 'User'); ?>



But for some reason the end product looks like this:




<img src=" images user.png" alt="User">



Seems as if this is only happening in the View,… view. As the layout is displaying the logo correctly.

Any ideas?

Could you post your actual code snippet and the actual html output?

Thanks Softark for replying. I went into the IRC chat. After about 10 minutes of looking at the source, I did a facepalm. Apparently one the <div> statements above the php was missing a quote. Totally threw off formatting in the area.

Logan

Yeah, I knew. ^_^