太阳成游戏网站CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
QQ1835022299
028-61286886
您好 独立模块 怎么判断是否有栏目 有栏目就出现
{cache name=module-content return=m} {if !$m.share}
{if !$m.share}
{if !$m.share && $m.category}
{if $ci->get_cache('module-1-模块目录', 'category')} 有栏目 {/if}
这么就好理解,但是原理还是一样,只是判断的位置变化了,
就算我不给你写出来,应该你能理解吧
{category module=$m.dirname pid=0 return=t2}- {$t2.name}
{if $t2.child}
{/category}
{category module=$m.dirname pid=$t2.id return=t3}- {$t3.name}
{/category}
{/if}{category module=$m.dirname pid=0 return=t2}- {$t2.name}
{if $t2.child}
{/category}
{category module=$m.dirname pid=$t2.id return=t3}- {$t3.name}
{/category}
{/if}这么就好理解,但是原理还是一样,只是判断的位置变化了,
就算我不给你写出来,应该你能理解吧
{category module=$m.dirname pid=0 return=t2}- {$t2.name}
{if $t2.child}
{/category}
{/if}{category module=$m.dirname pid=$t2.id return=t3}- {$t3.name}
{/category}
{/if}你不仔细了
{category module=$m.dirname pid=0 return=t2}- {$t2.name}
{if $t2.child}
{/category}
{/if}{category module=$m.dirname pid=$t2.id return=t3}- {$t3.name}
{/category}
{/if}{category module=$m.dirname pid=0 return=t2}- {$t2.name}
{if $t2.child}
{/category}
{/if}{category module=$m.dirname pid=$t2.id return=t3}- {$t3.name}
{/category}
{/if}