I'm currently starting a project on the beta version of Laravel 4
When i try to use the templating engine some tags work and some doesn't. e.g:
@layout('layouts.master')
@section('container')
<h1>About US</h1>
@endsection
is displayed as:
@layout('layouts.master')
About US
@endsection
which means that the @section
tag is parsed, but the other are referred to as plain text.
also if i change the @layout
to @include
, it does include the template.
Has anyone run into a similar issue? Have there been any syntax changes I'm unaware of?
The blade templating engine provides loops such as @for, @endfor, @foreach, @endforeach, @while, and @endwhile directives. These directives are used to create the php loop equivalent statements.
Laravel Blade template engine enables the developer to produce HTML based sleek designs and themes. All views in Laravel are usually built in the blade template. Blade engine is fast in rendering views because it caches the view until they are modified. All the files in resources/views have the extension .
Yes you can use it where ever you like.
@layout
has been changed to @extends
in Laravel 4. Also, @endsection
has been changed to @stop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With