Support the ongoing development of Laravel.io →
posted 9 years ago
Views
Last updated 1 year ago.
0

Try

<html>
    <head>
        <title>@yield('title')</title>
    </head>
    <body>
        @yield('content')
    </body>
<html>
@extends('layouts.master')

@section('title')
Some title
@stop

@section('content')
<p>The content here</p>
@stop
return View::make('someview');

You might be able to put the title section on 1 line. I haven't tried

Last updated 1 year ago.
0

Man, I mean PhpEngine, not Blade!

Last updated 1 year ago.
0

Hello?

Last updated 1 year ago.
0

Sorry I misread. I thought your issue was you were looking for alternatives to coupling your views to your controllers. What you've done looks fine. I'm not sure of the advantages are over using a template language though.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.