gpt4 book ai didi

php - Symfony\Component\Debug\Exception\FatalErrorException 语法错误,意外的文件结尾 (Laravel)

转载 作者:行者123 更新时间:2023-12-03 09:25:58 25 4
gpt4 key购买 nike

master.blade.php 的文件包含:

@section('content')
@foreach($admons as $admon)
<p>{{ $admons->admon }}</p>
@foreach
@stop

它向我抛出错误:

Symfony \ Component \ Debug \ Exception \ FatalErrorException
syntax error, unexpected end of file

C:\AppServ\www\Viniza\app\storage\views\b48f03c3d0a952af7b5dd24750898f94

 $(document).ready(function() {
$('ul.sf-menu').sooperfish();
$('.top').click(function() {$('html, body').animate({scrollTop:0}, 'fast'); return false;});
});
</script>
</body>
</html>

master.blade.php文件的完整内容是:

{{ HTML::style('css/style.css') }}
{{ HTML::script('js/jquery.js') }}

@section('content')
@foreach($admons as $admon)
<p>{{ $admons->admon }}</p>
@foreach
@stop

<!DOCTYPE HTML>
<html>

<head>
<title>Viniza Konw</title>
<meta name="keywords" content="coffee buy shop" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>

<body>
<div id="main">
<header>
<div id="logo">
<div id="logo_text">
<h1><a href="index.html">Coffe<span class="logo_colour">JuanValdez</span></a></h1>
</div>
</div>
<nav>
<div id="menu_container">
<ul class="sf-menu" id="nav">
<li><a href="#">Home</a></li>
</ul>
</div>
</nav>
</header>

<div id="site_content">
<div class="content">
<h1></h1>

<div class="header_image">
{{ HTML::image('images/header_image.jpg', "Imagen no encontrada",
array('id' => 'center', 'title' => 'center')) }}
</div>

<div class="border_top"></div>
<div class="border_bottom"></div>

</div>
</div>
<div id="scroll">
<a title="Scroll to the top" class="top" href="#"><img src="images/top.png" alt="top" /></a>
</div>
<footer>
<p><img src="images/twitter.png" alt="twitter" />&nbsp;
<img src="images/facebook.png" alt="facebook" />&nbsp;
<img src="images/rss.png" alt="rss" /> </p>
<p>Copyright &copy; CSS3_winter_scene | <a href="http://www.css3templates.co.uk">design from css3templates.co.uk</a></p>
</footer>
</div>
<!-- javascript at the bottom for fast page loading -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.easing-sooper.js"></script>
<script type="text/javascript" src="js/jquery.sooperfish.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('ul.sf-menu').sooperfish();
$('.top').click(function() {$('html, body').animate({scrollTop:0}, 'fast'); return false;});
});
</script>
</body>
</html>

最佳答案

Symphony 中的此错误通常告诉您没有“结束”控制结构(即“if”或“foreach”)。

您有几个拼写错误,您以“@foreach”结尾的 foreach 应该是“@endforeach”。

这应该适合你。

关于php - Symfony\Component\Debug\Exception\FatalErrorException 语法错误,意外的文件结尾 (Laravel),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21492956/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com