0
저는 Zend_Navigation으로 메뉴와 빵 부스러기를 만들지 만 home
페이지의 계층 구조에는 약간의 문제가 있습니다. 다음은 XML 파일이있는 Zend_Navigation의 기본 예제입니다. (아래 그림 참조)의 메뉴에 홈페이지와 Zend_Navigation 계층 문제
<config>
<nav>
<home>
<label>Home</label>
<controller>index</controller>
<action>index</action>
</home>
<about>
<label>About</label>
<controller>about</controller>
<action>index</action>
</about>
<contact>
<label>Contact</label>
<controller>contact</controller>
<action>index</action>
</contact>
</nav>
</config>
상기
about
및
contact
home
페이지는 페이지와 동일한 수준에 있어야한다. 이러한 모든 페이지는 탐색 XML 파일에서 동일한 수준에 있으므로 예상대로 작동합니다. 그러나,
about
및
contact
페이지가
home
페이지에 중첩되어야 빵 부스러기에
<ul>
<li>Home</li>
<li>About</li>
<li>Contact</li>
</ul>
. 이것은 다음과 같은 이동 경로가 about
페이지에 표시되어야 함을 의미한다
Home > About
내가 이것을 달성 할 수있을 것 어떻게
?