@extends('layout') laravel. Blade Template System seems like Not working
That should work if you have a template file at /app/views/layout.blade.php that contains
<p>Some content here</p>
@yield('content')
<p>Some additional content here</p>
Then in your /app/views/user.blade.php, the content
@extends('layout')
@section('content')
<p>This is the user content</p>
@stop
If you call return View::make('user')
you should have the compiled content
<p>Some content here</p>
<p>This is the user content</p>
<p>Some additional content here</p>
I hope that helps clarify things for you. If not, can you provide your template file locations and the relevant content?
Just remove the extra space or anything before @extends('yourlayoutfile').
It should be the first thing to be rendered in the file.
I was facing the same problem and tried many things.Suddenly I found a single space at the starting of the file before @extends.
Removed the space and is working fine.
Thanks.
Format:
@extends('layouts.default')
@section('content')
.....
@stop
---Edit----
If this didnt work then try :
Copy all the content in the file and then delete the file.
Create a new file and save it as filename.blade.php
Only after saving the file paste the content into the page. Save the changes and run it.
This works.
Thank you.