Why
<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
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',