Anyone see any reasons why this wouldn't work in laravel 4? I figured I would check here before posting on github.
In the controller:
return View::make('home.index')
->with('bcrumbs', array("home.index" => "Home","home.privacy" =>"Privacy Policy"))
In the template:
@foreach ($bcrumbs as $k => $elem}
<li><a href='{{ URL::route($k) }}'>{{ $elem }}</a></li>
@endforeach
Even if I remove any processing within the foreach and just write "hi", it is a total failure. Chrome reports:
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.