我正在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' –