我有这个刀片模板,我想首先检查 $dejeuner 日期是否存在,如果是的话,其余的会显示一条消息,但这行代码显示错误并获取详细信息,或者如果我更改它,我只得到错误即使在其他方面我要求获取数据。你们能帮我查一下吗
<div style="text-align: center;" id="lunch">
@if(emptyArray($dejeuner))
<h2 class="sessiontitle">Déjeuner : </h2>
<ul style=" text-align: center;margin-top: 10%">
<li class="menuitems">menu non disponible</li>
</ul>
@else
<h2 class="sessiontitle">Déjeuner : {{$dejeuner[0]->date}}</h2>
@foreach($dejeuner as $dej)
<ul style=" text-align: center;margin-top: 10%">
@foreach($dej->liste as $list)
<li class="menuitems">{{$list->plat->titre}}</li>
@endforeach
</ul>
@endforeach
@endif
Run Code Online (Sandbox Code Playgroud) 我是一个巨大的laravel粉丝,我已经使用了一段时间,我没有抱怨.
问题是我有这个客户谁想要这个用symfony2制作的应用程序(非常具体)
你能不能给我一些指针,比如对于symfony中的laravel的每个主要元素(mvc结构模型,其中控制器,其中orm学说)
我读过的捆绑,但我只是无法掌握它是如何工作的每个人都说它是一个文件目录........你能告诉我什么相当于laravel中的捆绑像我认为我能理解
谢谢你们