1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect2 id="zend.application.available-resources.navigation">
4 <title>Zend_Application_Resource_Navigation</title>
7 <classname>Zend_Application_Resource_Navigation</classname> can be used to configure
8 a <classname>Zend_Navigation</classname> instance. Configuration options are per <link
9 linkend="zend.navigation.pages.common.options">the
10 <classname>Zend_Navigation</classname> options</link>.
14 Once done configuring the navigation instance, it assigns the instance to
15 <classname>Zend_View_Helper_Navigation</classname> by default
16 -- from which you may retrieve it later.
19 <example id="zend.application.available-resources.navigation.configExample">
20 <title>Sample Navigation resource configuration</title>
23 Below is a sample <acronym>INI</acronym> snippet showing how to
24 configure the navigation resource.
27 <programlisting language="ini"><![CDATA[
28 resources.navigation.pages.page1.label = "Label of the first page"
29 resources.navigation.pages.page1.route = "Route that belongs to the first page"
31 ; Page 2 is a subpage of page 1
32 resources.navigation.pages.page1.pages.page2.type = "Zend_Navigation_Page_Uri"
33 resources.navigation.pages.page1.pages.page2.label = "Label of the second page"
34 resources.navigation.pages.page1.pages.page2.uri = "/url/to/page/2"