File: Zend_Application-AvailableResources-Navigation.xml

package info (click to toggle)
zendframework 1.12.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 133,584 kB
  • sloc: xml: 1,311,829; php: 570,173; sh: 170; makefile: 125; sql: 121
file content (37 lines) | stat: -rw-r--r-- 1,548 bytes parent folder | download | duplicates (2)
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>