title: How to add script files using headScript with Zend Framework?
body: <p>I am developing a new zend framework application, and when I just hard coded the headScript section for my layout.phtml file and Bootstrap _initScript method, when looking at the source-code after not having the script loaded... a got a really weird result.</p>
  
  <p>I got this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      //&lt;!--
      /js/jquery-1.8.1.min.js    //--&gt;
  </code></pre>
  
  <p>Here is my layout.phtml code:</p>
  
  <pre><code>&lt;?php echo $this-&gt;doctype(); ?&gt; 
  &lt;html&gt;
      &lt;head&gt;
          &lt;?php echo $this-&gt;headTitle(); ?&gt;
          &lt;?php echo $this-&gt;headLink(); ?&gt;
          &lt;?php echo $this-&gt;headScript(); ?&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;?php echo $this-&gt;layout()-&gt;content; ?&gt;
      &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is my Bootstrap.php code:</p>
  
  <pre><code>protected function _initScript()
  {
      $this-&gt;view-&gt;headScript()
         -&gt;prependScript( "/js/jquery-1.8.1.min.js" );
  }
  </code></pre>
  
  <p>As you can see it is very ordinary code!</p>
  
  <p>Anybody could help me find out what's going on here?</p>