聯系官方銷售客服
1835022288
028-61286886
我的產品圖集是使用官方模塊改的多文件 見圖
但是在生成靜態html的時候 提示字段必須是數組 array_slice(): Argument #1 ($array) must be of type array, int given
在內容頁面的代碼是
<?php $thumb = array_slice($thumb, 0, 4);?>
<?php if ($thumb) { $key=0;foreach ($thumb as $c) { ?>
<div class="swiper-slide"><img src="{dr_thumb($c.file, 400, 400)}"></div>
<?php $key++;} } ?>
請問 怎么修改啊 ?
<?php $thumb = array_slice($thumb, 0, 4);?>
改成
<?php $thumb = dr_arraycut($thumb, 4);?>
回復@如來 要取出數組 循環啊 順便問下大佬 圖集你們是怎么做的 啊 ? 怎么循環出來啊 謝謝