I am using Laravel 4 locally with EasyPHP 14.1. I created a route:
Route::get('/test', function()
{
return View::make('test');
});
layout (testlayout.blade.php):
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
<div class="container">
@yield('container')
</div>
</body>
</html>
and view (test.blade.php):
@extends("testlayout")
@section('container')
<h1>Hello!</h1>
@stop
It works great and I get "Hello!"
But when they change their layout by adding include, like this:
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
<div class="container">
@yield('container')
</div>
@include('testfooter')
</body>
</html>
with my footer (testfooter.blade.php):
@section("testfooter")
<div class="footer">2013-2014</div>
@show
I have a syntax error, unexpected '/' error.
The code generated by Laravel (found in app \ storage \ views) is incorrect:
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
<div class="container">
<?php echo $__env->yieldContent('container')
</div>
<?php echo $__env->make('testfooter', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>; ?>
</body>
</html>
Laravel forgets ;?>after yieldContent('container')and adds two ;?>after ... render(). I have tried many things, but right now I have no clue.
Update1 I reinstalled the new Laravel and the guest, that the problem remains the same. Without @include, this is normal, with @include I have the same error over and over again.
UPDATE2 ( @majimboo)!
. . : Notepad ++ Windows. somes "/ EOL/ Windows" "edit/EOL conversion/Mac format". , , Laravel Mac ! , Notepad ++ Windows, , : EOL/