2012-06-06 2 views
1

이전에 생성 된 기존 메뉴에 새 항목을 추가하는 데 도움이 필요합니다. 메뉴에 다음 코드 줄을 추가했는데 아무 것도 나타나지 않습니다. 다음과 같이PHP 탐색 배열 include - 새 항목 추가

,'support' => array('str'=>'Support','href'=>'/search/movies/support.php') 

내가 포함 파일에 변경된 코드는 : 현재의 구조에서

EOF; 

$ary_menu = array(
    'learn'  => array('str'=>'Learn','href'=>'/tech/index.php' 
     ,'sub' => array(
      'principles' => array('str'=>'Laser Principles','href'=>'/tech/index.php') 
      ,'standards' => array('str'=>'Safety and International Standards','href'=>'/tech/install.php') 
      ,'glossary' => array('str'=>'Laser Terms Glossary','href'=>'/tech/yougo/a.php' 
       ,'src' => $src_glossary 
      ) 
      ,'techniques' => array('str'=>'Laser Processing Techniques','href'=>'/tech/kakou.php') 
      ,'faq'  => array('str'=>'Laser Marker FAQ','href'=>'/tech/faq.php' 
       ,'sub' => $sub_faq 
      ) 
     ) 
    ) 
    ,'explore' => array('str'=>'Explore','href'=>'/search/movies/index.php' 
     ,'sub' => array(
      'mov'   => array('str'=>'Videos','href'=>'/search/movies/index.php') 
      ,'appl'  => array('str'=>'Industries and <br/>Applications','href'=>'/search/appli/index.php') 
      ,'character' => array('str'=>'Laser Characteristics <br/>by Material','href'=>'/search/features/index.php' 
       ,'sub'  => $sub_lcm 
      ) 
     ) 
    ) 
    ,'products' => array('str'=>'Products','href'=>'/products/index.php' 
     ,'sub' => array(
      'pd_overview' => array('str'=>'Overview','href'=>'/products/index.php') 
      ,'mdt1000'  => array('str'=>'Green Laser Marker<br><font size="1">MD-T 1000 Series</font>','href'=>'/products/green-laser-marker.php') 
      ,'mdf3000'  => array('str'=>'Fiber Laser Marker<br><font size="1">MD-F 3000 Series</font>','href'=>'/products/fiber-laser-marker.php') 
      ,'mdv9900'  => array('str'=>'YVO4 Laser Marker<br><font size="1">MD-V 9900A Series</font>','href'=>'/products/yvo4-laser-marker.php') 
      ,'mlz9500'  => array('str'=>'CO2 Laser Marker<br><font size="1">ML-Z 9500 Series</font>','href'=>'/products/co2-laser-marker.php') 
      ,'mlg9300'  => array('str'=>'CO2 Laser Marker<br><font size="1">ML-G 9300 Series</font>','href'=>'/products/high-speed-co2-laser-marker.php') 
      ,'mdh9800'  => array('str'=>'YAG Laser Marker<br><font size="1">MD-H 9800 Series</font>','href'=>'/products/yag-laser-marker.php') 
     ) 
    ) 
    ,'downloads' => array('str'=>'Downloads','href'=>'/downloads/index.php' 
     ,'sub' => array(
      'dl_top'  => array('str'=>'Download Catalog','href'=>'/downloads/index.php') 
      ,'lib_top'  => array('str'=>'Laser Marking Library','href'=>'/downloads/index.php#lib' 
       ,'sub'  => array(
        'lib_qa'  => array('str'=>'Marking Q&A','href'=>'/topics/library_question.php') 
        ,'lib_app'  => array('str'=>'Introduction Examples','href'=>'/topics/library_application.php') 
        ,'lib_cost' => array('str'=>'Expert Knowledge','href'=>'/topics/library_costdown.php') 
        ,'lib_other' => array('str'=>'Industry','href'=>'/topics/library_other.php') 
     ) 
    ) 
    ,'support' => array('str'=>'Support','href'=>'/search/movies/support.php') 
      ) 
     ) 
    ,'virtual' => array('str'=>'Virtual','href'=>'/virtual/index.php') 
); 

답변

1

를 지원 메뉴는 다운로드에 대한 하위 메뉴 아래에 나타납니다. 너가 원하는게 그거야?

<?php 
$ary_menu = array(
    'learn'  => array('str'=>'Learn','href'=>'/tech/index.php' 
     ,'sub' => array(
      'principles' => array('str'=>'Laser Principles','href'=>'/tech/index.php') 
      ,'standards' => array('str'=>'Safety and International Standards','href'=>'/tech/install.php') 
      ,'glossary' => array('str'=>'Laser Terms Glossary','href'=>'/tech/yougo/a.php' 
       ,'src' => $src_glossary 
      ) 
      ,'techniques' => array('str'=>'Laser Processing Techniques','href'=>'/tech/kakou.php') 
      ,'faq'  => array('str'=>'Laser Marker FAQ','href'=>'/tech/faq.php' 
       ,'sub' => $sub_faq 
      ) 
     ) 
    ) 
    ,'explore' => array('str'=>'Explore','href'=>'/search/movies/index.php' 
     ,'sub' => array(
      'mov'   => array('str'=>'Videos','href'=>'/search/movies/index.php') 
      ,'appl'  => array('str'=>'Industries and <br/>Applications','href'=>'/search/appli/index.php') 
      ,'character' => array('str'=>'Laser Characteristics <br/>by Material','href'=>'/search/features/index.php' 
       ,'sub'  => $sub_lcm 
      ) 
     ) 
    ) 
    ,'products' => array('str'=>'Products','href'=>'/products/index.php' 
     ,'sub' => array(
      'pd_overview' => array('str'=>'Overview','href'=>'/products/index.php') 
      ,'mdt1000'  => array('str'=>'Green Laser Marker<br><font size="1">MD-T 1000 Series</font>','href'=>'/products/green-laser-marker.php') 
      ,'mdf3000'  => array('str'=>'Fiber Laser Marker<br><font size="1">MD-F 3000 Series</font>','href'=>'/products/fiber-laser-marker.php') 
      ,'mdv9900'  => array('str'=>'YVO4 Laser Marker<br><font size="1">MD-V 9900A Series</font>','href'=>'/products/yvo4-laser-marker.php') 
      ,'mlz9500'  => array('str'=>'CO2 Laser Marker<br><font size="1">ML-Z 9500 Series</font>','href'=>'/products/co2-laser-marker.php') 
      ,'mlg9300'  => array('str'=>'CO2 Laser Marker<br><font size="1">ML-G 9300 Series</font>','href'=>'/products/high-speed-co2-laser-marker.php') 
      ,'mdh9800'  => array('str'=>'YAG Laser Marker<br><font size="1">MD-H 9800 Series</font>','href'=>'/products/yag-laser-marker.php') 
     ) 
    ) 
    ,'downloads' => array('str'=>'Downloads','href'=>'/downloads/index.php' 
     ,'sub' => array(
      'dl_top'  => array('str'=>'Download Catalog','href'=>'/downloads/index.php') 
      ,'lib_top'  => array('str'=>'Laser Marking Library','href'=>'/downloads/index.php#lib' 
       ,'sub'  => array(
        'lib_qa'  => array('str'=>'Marking Q&A','href'=>'/topics/library_question.php') 
        ,'lib_app'  => array('str'=>'Introduction Examples','href'=>'/topics/library_application.php') 
        ,'lib_cost' => array('str'=>'Expert Knowledge','href'=>'/topics/library_costdown.php') 
        ,'lib_other' => array('str'=>'Industry','href'=>'/topics/library_other.php') 
     ) 
    ) 

      ) 
     ),'support' => array('str'=>'Support','href'=>'/search/movies/support.php') 
    ,'virtual' => array('str'=>'Virtual','href'=>'/virtual/index.php') 
); 

?> 

편집 : 당신은이 (가 아닌 하위로) 링크를 "학습"직후에 의미 .. 여기 경우 아래함으로써, 당신은 메인 메뉴로하려면 구조로해야한다 :

<?php 
$ary_menu = array(
    'learn'  => array('str'=>'Learn','href'=>'/tech/index.php' 
     ,'sub' => array(
      'principles' => array('str'=>'Laser Principles','href'=>'/tech/index.php') 
      ,'standards' => array('str'=>'Safety and International Standards','href'=>'/tech/install.php') 
      ,'glossary' => array('str'=>'Laser Terms Glossary','href'=>'/tech/yougo/a.php' 
       ,'src' => $src_glossary 
      ) 
      ,'techniques' => array('str'=>'Laser Processing Techniques','href'=>'/tech/kakou.php') 
      ,'faq'  => array('str'=>'Laser Marker FAQ','href'=>'/tech/faq.php' 
       ,'sub' => $sub_faq 
      ) 
     ) 
    ),'support' => array('str'=>'Support','href'=>'/search/movies/support.php') 
    ,'explore' => array('str'=>'Explore','href'=>'/search/movies/index.php' 
     ,'sub' => array(
      'mov'   => array('str'=>'Videos','href'=>'/search/movies/index.php') 
      ,'appl'  => array('str'=>'Industries and <br/>Applications','href'=>'/search/appli/index.php') 
      ,'character' => array('str'=>'Laser Characteristics <br/>by Material','href'=>'/search/features/index.php' 
       ,'sub'  => $sub_lcm 
      ) 
     ) 
    ) 
    ,'products' => array('str'=>'Products','href'=>'/products/index.php' 
     ,'sub' => array(
      'pd_overview' => array('str'=>'Overview','href'=>'/products/index.php') 
      ,'mdt1000'  => array('str'=>'Green Laser Marker<br><font size="1">MD-T 1000 Series</font>','href'=>'/products/green-laser-marker.php') 
      ,'mdf3000'  => array('str'=>'Fiber Laser Marker<br><font size="1">MD-F 3000 Series</font>','href'=>'/products/fiber-laser-marker.php') 
      ,'mdv9900'  => array('str'=>'YVO4 Laser Marker<br><font size="1">MD-V 9900A Series</font>','href'=>'/products/yvo4-laser-marker.php') 
      ,'mlz9500'  => array('str'=>'CO2 Laser Marker<br><font size="1">ML-Z 9500 Series</font>','href'=>'/products/co2-laser-marker.php') 
      ,'mlg9300'  => array('str'=>'CO2 Laser Marker<br><font size="1">ML-G 9300 Series</font>','href'=>'/products/high-speed-co2-laser-marker.php') 
      ,'mdh9800'  => array('str'=>'YAG Laser Marker<br><font size="1">MD-H 9800 Series</font>','href'=>'/products/yag-laser-marker.php') 
     ) 
    ) 
    ,'downloads' => array('str'=>'Downloads','href'=>'/downloads/index.php' 
     ,'sub' => array(
      'dl_top'  => array('str'=>'Download Catalog','href'=>'/downloads/index.php') 
      ,'lib_top'  => array('str'=>'Laser Marking Library','href'=>'/downloads/index.php#lib' 
       ,'sub'  => array(
        'lib_qa'  => array('str'=>'Marking Q&A','href'=>'/topics/library_question.php') 
        ,'lib_app'  => array('str'=>'Introduction Examples','href'=>'/topics/library_application.php') 
        ,'lib_cost' => array('str'=>'Expert Knowledge','href'=>'/topics/library_costdown.php') 
        ,'lib_other' => array('str'=>'Industry','href'=>'/topics/library_other.php') 
     ) 
    ) 

      ) 
     ) 
    ,'virtual' => array('str'=>'Virtual','href'=>'/virtual/index.php') 
); 

?> 
+0

감사합니다. 너는 최고야! 문제 해결됨. 그것은 나를 미치게했다! – Amy

+0

또 다른 질문으로, 'Learn'link 아래'Support '링크를 이동하고 싶다면 어떻게해야합니까? 나는 코드의 링크를 옮겨 보았는데 & ) 'support'=> array ('str'=> 'Support', 'href'=> '/ search/movies/support. php ') – Amy

+0

위의 편집을 확인하십시오 –