按照老师说的
<div class="header"> <span class="title"><span style="font-size: 20px;">{$title}</span>--后台管理系统</span> <span class="userinfo">【{$login}】<span><a href="javascript:;">退出</a></span></span> </div> <div class="メニュー" id="メニュー"> <div class="layui-collapse" レイアコーディオン> <div class="layui-colla-item"> <h2 class="layui-colla-title">{$left[0]['title']}</h2> <div class="layui-colla-contentlayui-show"> <ul class="layui-navlayui-nav-tree"lay-filter="test"> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> </ul> </div> </div> <div class="layui-colla-item"> <h2 class="layui-colla-title">{$left[0]['title']}</h2> <div class="layui-colla-content"> <ul class="layui-navlayui-nav-tree"lay-filter="test"> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> </ul> </div> </div> <div class="layui-colla-item"> <h2 class="layui-colla-title">{$left[0]['title']}</h2> <div class="layui-colla-content"> <ul class="layui-navlayui-nav-tree"lay-filter="test"> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> <li class="layui-nav-item"><a href="list.html">{$left[0]['lists'][0]['title']}</a> ;</li> </ul> </div> </div> </div> </div>
{$left[0]['lists'][0]['title']} これは PHP 変数なので、最初に定義する必要があります
先生はあるファイルに変数名を設定したはずですが、それを間違えずに直接コピーできますか?