title: laravel 4 blade template view blank body
body: <p>I've started using laravel 3 on a project and part way through decided last night to change to laravel 4 as most of the items I research now seem to reference laravel 4 and it appears the way forward for me. However the differences in between 3 and 4 over the basics is frustrating me not least as I can't find a good reference site with a good reference onn what to change in an upgrade. (I'll keep searching)</p>
  
  <p>Anyway... my problem. I've copied all my controllers and views over to the laravel 4 site. I can get the hello page and a basic html page of my own to display with through a route via a controller. However I can't get a view to render using a template.</p>
  
  <p>I've tested the template on it's own and can get it to render. I needed to remove some helper functions such as to_asset() but for now simply using straightforward markup. This is:</p>
  
  <pre><code>views/_layouts/master.blade.php
  </code></pre>
  
  <p>Within this I have created 'placeholders' for my content:</p>
  
  <pre><code>@yield('additionalCss')
  @yield('shortcuts')
  @yield('content')
  </code></pre>
  
  <p>and towards the bottom of the template I have:
      @yield('additionalScripts')</p>
  
  <p>I've created another view using this template...</p>
  
  <pre><code>views/articles/index.blade.php
  
  @extends('_layouts.master')
  
  @section('additionalCss')
  &lt;link rel="stylesheet" href="/css/sangoma-green.css"/&gt;
  
  @stop
  
  
  @section('shortcuts')
  &lt;a class="span2 data-block widget-block" href="/articles/create"&gt;
  &lt;section&gt;
      &lt;span class="icon-address-book-alt"&gt;&lt;/span&gt;
      &lt;strong&gt;Add Article&lt;/strong&gt;
  &lt;/section&gt;
  &lt;/a&gt;
  
  &lt;a class="span2 data-block widget-block" href="#"&gt;
  &lt;section&gt;
      &lt;span class="icon-flag-alt"&gt;&lt;/span&gt;
      &lt;strong&gt;Reports&lt;/strong&gt;
  &lt;/section&gt;
  &lt;/a&gt;
  @stop
  
  @section('content')
  
  
  &lt;div class="row"&gt;
  
  &lt;!-- Data block --&gt;
  &lt;article class="span12 dark data-block"&gt;
      &lt;header&gt;
          ...additional stuff here (removed for post)...
      &lt;/header&gt;
      &lt;section&gt;
  
          &lt;table class="datatable table table-striped table-bordered table-hover" id="article_table"&gt;
  ... removed content for brevity ...
          &lt;/table&gt;
  
      &lt;/section&gt;
  
  &lt;/article&gt;
  
  
  &lt;/div&gt;
  
  
  @stop
  
  @section('additionalScripts')
  &lt;!-- jQuery DataTable --&gt;
  &lt;script type="text/javascript" src="/js/plugins/dataTables/jquery.datatables.min.js"&gt;   &lt;/script&gt;
  
  @stop
  </code></pre>
  
  <p>When I try to render this view all I get is the following main my browser:</p>
  
  <pre><code>&lt;head&gt;
  This strangely contains the script markup that's placed at the foot of the page
  &lt;/head&gt; 
  &lt;body&gt;&lt;/body&gt; which is empty
  </code></pre>
  
  <p>It's as if the view is not referencing the master template.</p>
  
  <p>The views worked correctly in Laravel 3, I've changed the blade mark up (I think) to laravel 4. Can anyone point out the error of my ways please.</p>
  
  <p>Thank you</p>