[0] ThrowableError in 47899c075604bfeabbc7697a685b1e9c.php line 58

语法解析错误: syntax error, unexpected 'foreach' (T_FOREACH), expecting ',' or ')'

  1. <div class="container">
  2. <ul class="clearfix">
  3. <li> <a href="<?php echo "http://www.junhao100.com/huaxinzhen.html"; ?>">网站首页<span>home</span></a></li>
  4. <?php
  5. $_limit = "10";
  6. $_typeid = intval('1');
  7. $_category = new app\index\model\CategoryModel();
  8. $_navlist = $_category->getCategory('', $_typeid, true);
  9. $_navlist = $_category->unlimitedForLayer($_navlist);
  10. foreach($_navlist as $autoindex => $nav):
  11. $_limit_list = explode(',', $_limit);
  12. if(count($_limit_list) > 1){
  13. if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue;
  14. } else{
  15. if($autoindex >= $_limit) break;
  16. }
  17. $navmainurl = $nav['catmainurl'] ? false : true;