admin 发表于 2023-3-12 15:09:22

文库系统首页分类显示

<p>文库系统的这个用法可以指定循环某大类ID下的小类么</p>

<pre class="brush:html;toolbar:false">@foreach($categoryTree as $c)
{{$c['title']}}
@endforeach</pre>

<p><br></p><hr>以下是回复内容:<br><div class="ub-html content">
                                                    <pre class="brush:php;toolbar:false">@foreach($categoryTree as $c)
    {{$c['title']}}
    @if(!empty($c['_child']))
        @foreach($c['_child'] as $cc)
            {{$cc['title']}}
        @endforeach
    @endif
@endforeach</pre>

<p><br></p>
                                                </div><hr><br>采集网址:<br>https://modstart.com/thread/947
页: [1]
查看完整版本: 文库系统首页分类显示