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