我正在laravel做一個項目和extends
無法正常工作。在我的主頁上我擴展了佈局,但是當我嘗試在其他頁面上擴展布局時,它失敗了,我在兩頁上都做了相同的事情。問題與Laravel延伸
這是延長工作正常
@extends('layout.app')
@section('body')
<center><a href="todo/create" class="btn btn-info">Add New</a></center>
<a href="todo/ce" class="btn btn-info">ce</a>
<table class="table-condensed">
<thead>
<tr>
<th>Title</th>
<th>Body</th>
<th>Created</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<tr>
<td>asdasd</td>
<td>asdasd</td>
<td>asdasda</td>
<td> <a href="">Edit</a></td>
<td> <a href="">Delete</a></td>
</tr>
</tbody>
</table>
@endsection
這裏是哪裏擴展不起作用
@extends('layout.app')
@section('body')
<p>Ovo je create page</p>
@endsections
什麼是錯誤? –
打開空白page.on檢查元素thers沒有錯誤 – mihighlo
您的'main_layout.blade.php'文件位於何處?它在任何子文件夾中?例如,'前/ abc/main_layout.blade.php' –