PHPCMS技巧

当前位置/ 首页/ V9教程/PHPCMS技巧/ 正文

PHPCMS单页模板访问大栏目,自动跳转到该栏目的第一个子栏

PHPCMS单页模板访问大栏目,自动跳转到该栏目的第一个子栏解决方案

<?php
 if($child){
     $child_arrary=explode(',',$arrchildid);
        $to_url=$CATEGORYS[$child_arrary[1]][url];
  echo "<script>window.location.href='".$to_url."'</script>";
    }
?>