ety1.3 버전 모바일 좌측 메뉴에 메뉴가 뜨지 않습니다.
페이지 정보
작성자
본문
ety1.3 버전 모바일 좌측 메뉴에 메뉴가 뜨지 않습니다.
foreach( $menu_datas as $row ){
if( empty($row) ) continue;
if($row['sub']['0']) {
특히 if($row['sub']['0']) { 조건이 무엇을 담고 있는지도 궁금합니다.
메뉴가 나오도록 하려면 어떻게 해야 할까요?
댓글목록
소프트존님의 댓글

소프트존님의 댓글

특히 if($row['sub']['0']) { 조건이 무엇을 담고 있는지도 궁금합니다.
위 해당내용은
$row['sub'][0] 번째 배열에 값이 있으며 출력하라 라는 뜻 입니다.
값이 존재하지 않는다면 그냥 패스해 버립니다.
코드를 살펴봐야 알겠지만
1차 메뉴가 있으면 출력하고 없으면 출력하지 말아라 라는 뜻입니다.
감사합니다.