[GENERIC] Zend_Translate:
[zend.git] / documentation / manual / en / module_specs / Zend_Application-AvailableResources-Navigation.xml
blob0fe33833824f82761b204b9f85e1159cbc4ceaf4
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Reviewed: no -->
3 <sect2 id="zend.application.available-resources.navigation">
4     <title>Zend_Application_Resource_Navigation</title>
6     <para>
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>.
11     </para>
13     <para>
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.
17     </para>
19     <example id="zend.application.available-resources.navigation.configExample">
20         <title>Sample Navigation resource configuration</title>
22         <para>
23             Below is a sample <acronym>INI</acronym> snippet showing how to
24             configure the navigation resource.
25         </para>
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"
35 ]]></programlisting>
36     </example>
37 </sect2>