title: Zend Framework: Cannot echo doctype or stylesheet path; echoing Object id # instead
body: <p>I've FTP'd my Quickstart project from a Windows machine to a Linux box and I'm getting unexpected results from these statements: </p>
  
  <pre><code>echo $this-&gt;doctype();
  echo $this-&gt;headLink()-&gt;appendStylesheet('/css/main.css');
  </code></pre>
  
  <p>My output should look like this (Windows machine):</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;link href="/css/main.css" media="screen" rel="stylesheet" type="text/css" &gt;
      &lt;title&gt;Sample Zend app&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;This is my layout&lt;/h1&gt;
      &lt;p&gt;This is index.phtml&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my output on from Linux box:</p>
  
  <pre><code>Object id #37
  &lt;html lang="en"&gt;
  &lt;head&gt;
      Object id #49
      &lt;title&gt;Sample Zend app&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;This is my layout&lt;/h1&gt;
      &lt;p&gt;This is index.phtml&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Any idea why my statements echoing the doctype and path to my stylesheet are producing <em>Object id #xx</em>?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Also- I've provided my Boostrap, application.ini, and layout:</p>
  
  <p><strong>Bootstrap.php:</strong>
      
  
  <pre><code>class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
  
      protected function _initDocType() {
          $this-&gt;bootstrap('view');
          $view = $this-&gt;getResource('view');
          $view-&gt;doctype('HTML5');
      }
  }
  </code></pre>
  
  <p><strong>application.ini:</strong></p>
  
  <pre><code>[production]
  phpSettings.display_startup_errors = 0
  phpSettings.display_errors = 0
  includePaths.library = APPLICATION_PATH "/../library"
  bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  bootstrap.class = "Bootstrap"
  appnamespace = "Application"
  resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  resources.frontController.params.displayExceptions = 0
  resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
  resources.view[] = 
  [staging : production]
  
  [testing : production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  
  [development : production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  resources.frontController.params.displayExceptions = 1
  </code></pre>
  
  <p><strong>layout.phtml:</strong></p>
  
  <pre><code>&lt;?php echo $this-&gt;doctype(); ?&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;?php echo $this-&gt;headLink()-&gt;appendStylesheet('/css/main.css'); ?&gt;
      &lt;title&gt;Sample Zend app&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;This is my layout/h1&gt;
      &lt;?php echo $this-&gt;layout()-&gt;content; ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>