title: How to get absolute path for css and script
body: <p>How to get absolute path for stylesheet or javascript files. </p>
  
  <pre><code>&lt;?php echo $this-&gt;Html-&gt;css('/css/main.css');?&gt;
  </code></pre>
  
  <p>Is giving URL </p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="/dev/theme/Default/css/main.css" /&gt;
  </code></pre>
  
  <p>And I am looking for </p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="http://localhost/dev/theme/Default/css/main.css" /&gt;
  </code></pre>