lundi 27 février 2017

Laravel: yield('content')

I created a view:

@extends('layouts.dashboard')
@section('wrapper')

<table class="table table-striped">
  <tr>
    <th>Username</th>
    <th>Event-count</th>
    <th>Is active</th>
  </tr>

And: layouts.dashboard

<div class="main-panel">
    @yield('section')
</div>
            <footer class="footer">

And now the table is shown on top and not in the div class="main". Does anyone know why?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2m36TDW
via IFTTT

Aucun commentaire:

Enregistrer un commentaire