title: How do I access programmatically the url where my index is located in CakePHP?
body: <p>Ex:</p>
  
  <pre><code>echo getMyUrl();
  </code></pre>
  
  <p>should echo: </p>
  
  <pre><code>http://localhost/myapplication
  </code></pre>