Body: <p>I've just set up a multi-environment install of Craft but am having an issue on my local install under MAMP Pro. Everything seems to be loading fine except for my index template in the root of the 'templates' directory. It extends a <code>_layout.twig</code> template but when I load the site locally, only the layout template is being rendered (ie. my block overrides in the index template that extends it aren't being rendered).</p>
  
  <p>However, this works fine on the remote version of the install.</p>
  
  <p>Any thoughts or help would be appreciated as I'm scratching my head at this point...</p>
  
  <p>Thanks.</p>
  
  <p><strong>Update</strong> - here is the code from <code>_layout.twig</code> and <code>index.twig</code>. Pretty straight forward - and these do work expected in the other non-local environment.</p>
  
  <p><strong>_layout.twig</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
  
      {% block head %}
          ...head code in here
      {% endblock %}
  
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
      {% block bodyContent %}
          ...presentational code in here
      {% endblock %}
  
      {% block footer %}
          ...presentational code in here
      {% endblock %}
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>index.twig</strong></p>
  
  <pre><code>{% extends "_layout.twig" %}
  
  {% set entries = craft.entries.section('homepage') %}
  
  {% block head %}
      {{ parent() }}
  
      ...additional head code
  {% endblock %}
  
  {% block bodyContent %}
      ... presentational code overriding _layout
  {% endblock %}
  
  {% block footer %}
      ... presentational code overriding _layout
  {% endblock %}
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-10T21:35:30.763Z
Comments.Text: Can you edit your question and share the template code for `layout.twig` and `index.twig`?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-10T23:08:11.000Z
Comments.Text: Have you ruled out caching already, as in you're seeing an older version of the index that doesn't include your overrides?
Comments.UserDisplayName: Matt Stein
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-11T22:35:55.553Z
Comments.Text: I don't believe there are caching issues...updates to _layout are rendered fine.
Comments.UserDisplayName: Mike
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-12T04:49:17.203Z
Comments.Text: Are you using PHP 5.5 or greater? If so, it has OpCache enabled by default which might explain what you're seeing that you can disable.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-12T17:30:40.780Z
Comments.Text: Thanks Brad but I'm running 5.4.10. I continue to look at this but cannot fathom where the issue is... I'm debating removing MAMP and reinstalling.
Comments.UserDisplayName: Mike
Tags: <templating><multi-environment>
Title: Only layout template being rendered in local environment
ThreadText: # Only layout template being rendered in local environment
  
  (Asked by: username_0 on 2014-12-10)
  
  I've just set up a multi-environment install of Craft but am having an issue on my local install under MAMP Pro. Everything seems to be loading fine except for my index template in the root of the 'templates' directory. It extends a `_layout.twig` template but when I load the site locally, only the layout template is being rendered (ie. my block overrides in the index template that extends it aren't being rendered).
  
  However, this works fine on the remote version of the install.
  
  Any thoughts or help would be appreciated as I'm scratching my head at this point...
  
  Thanks.
  
  **Update** - here is the code from `_layout.twig` and `index.twig`. Pretty straight forward - and these do work expected in the other non-local environment.
  
  **\_layout.twig**
  
  ```
  <!DOCTYPE html>
  <html lang="en">
  
  <head>
  
      {% block head %}
          ...head code in here
      {% endblock %}
  
  </head>
  
  <body>
  
      {% block bodyContent %}
          ...presentational code in here
      {% endblock %}
  
      {% block footer %}
          ...presentational code in here
      {% endblock %}
  
  </body>
  
  </html>
  
  ```
  
  **index.twig**
  
  ```
  {% extends "_layout.twig" %}
  
  {% set entries = craft.entries.section('homepage') %}
  
  {% block head %}
      {{ parent() }}
  
      ...additional head code
  {% endblock %}
  
  {% block bodyContent %}
      ... presentational code overriding _layout
  {% endblock %}
  
  {% block footer %}
      ... presentational code overriding _layout
  {% endblock %}
  
  ```
  
  **Tags:** templating, multi-environment
  
  > **Comments:**
  > **username_1**: Can you edit your question and share the template code for `layout.twig` and `index.twig`?  
  > **username_2**: Have you ruled out caching already, as in you're seeing an older version of the index that doesn't include your overrides?  
  > **username_0**: I don't believe there are caching issues...updates to _layout are rendered fine.  
  > **username_1**: Are you using PHP 5.5 or greater? If so, it has OpCache enabled by default which might explain what you're seeing that you can disable.  
  > **username_0**: Thanks username_1 but I'm running 5.4.10. I continue to look at this but cannot fathom where the issue is... I'm debating removing MAMP and reinstalling.  
  
  ---
  
  ## 0 answers
  
  