title: How to Set Base URL in Yii Framework
body: <p>When I do</p>
  
  <pre><code>print_r(Yii::app()-&gt;request-&gt;baseUrl)
  </code></pre>
  
  <p>I get an empty string. A post on the Yii forum says <a href="http://www.yiiframework.com/forum/index.php?/topic/23890-yiiapp-request-baseurl-doesnt-work/page__view__findpost__p__116111">this is blank by default</a>. How can I change its default value so that I can use absolute URLs?</p>