title: Yii::app()->baseUrl is not working
body: <p>Why </p>
  
  <pre><code>&lt;a id="tray-button"&gt;&lt;img id="tray-arrow" src="http://localhost/ric/slideshow/img/button-tray-up.png"/&gt;&lt;/a&gt;
  </code></pre>
  
  <p>is working but not this </p>
  
  <pre><code>&lt;a id="tray-button"&gt;&lt;img id="tray-arrow" src=&lt;?php Yii::app()-&gt;baseUrl.'/slideshow/img/button-tray-up.png'?&gt;/&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Provided <code>http://localhost/ric</code> -> is my webroot.</p>
  
  <p>Here is the basepath configuration from my main.php</p>
  
  <pre><code>'basePath'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
  </code></pre>