I have a problem, I don't know why but when I extend a blade template then I call it, it prints an empty page in my browser.
In my /app/views/layout.blade.php
- <div>
- @yield('main')
- </div>
In my /app/views/error/notfound.blade.php
- @extends('layout')
- @section('main')
- <myhtmlcode>
- </myhtmlcode>
- @stop
My notfound template is called when I catch a NotFoundHttpException
- App::error(function(\Symfony\Component\HttpKernel\Exception\NotFoundHttpException $exception, $code)
- {
- return View::make('error.notfound');
- });
Every other View::make work fine.. this one worked fine before.. but I certainly made an invisible mistake. I need your hindsight guys.
Thanks.