Hi everyone, I've got an unusual issue with Zend_Navigation that seems like
it should work correctly, but isn't.

Here's a basic example of the config...


    <nav>
        <home>
            <label>Home</label>
            <controller>index</controller>
            <action>index</action>
        </home>
        <admin>
            <label>Admin</label>
            <controller>admin</controller>
            <action>index</action>
        </admin>
        <booking>
            <label>Bookings</label>
            <controller>booking</controller>
            <action>list</action>

            <pages>
                <list-booking>
                    <label>List bookings</label>
                    <controller>booking</controller>
                    <action>list</action>
                </list-booking>
                <calendar>
                    <label>Booking calendar</label>
                    <controller>booking</controller>
                    <action>calendar</action>
                </calendar>
                <add-booking>
                    <label>Add booking</label>
                    <controller>booking</controller>
                    <action>new</action>
                </add-booking>
            </pages>
        </booking>
    </nav>

The problem exists when you're not on a URL that includes both controller
and action parts. If I go to http://example.com/base/url/admin, it defaults
to the index action, which is fine, but in the menu above none of the
actions display, so all of the Booking menus all say just
http://example.com/base/url/booking. Once you're actually "in" the menu and
using links generated by the menu, it all seems to work fine. Has anyone got
any idea why it is behaving this way?

Reply via email to