Yii::app()->Baseurl Is Not Working


<a id="tray-button"><img id="tray-arrow" src="http://localhost/ric/slideshow/img/button-tray-up.png"/></a>

is working but not this

<a id="tray-button"><img id="tray-arrow" src=<?php Yii::app()->baseUrl.'/slideshow/img/button-tray-up.png'?>/></a>

Provided "http://localhost/ric" -> is my webroot.

Here is the basepath configuration from my main.php


Also I do not want to display header on one page. How can I achieve that ?

view source in your browser and check what’s the difference between the two in img src attribute.