Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7778705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:27:53+00:00 2026-06-01T18:27:53+00:00

i am having problem using Zend_Navigation here is my navigation.xml file <?xml version=1.0 encoding=UTF-8?>

  • 0

i am having problem using Zend_Navigation here is my navigation.xml file

<?xml version="1.0" encoding="UTF-8"?>
<configdata>
    <admin>
        <dashboard>
            <label>Dashboard</label>
            <module>admin</module>
            <controller>dashboard</controller>
            <action>index</action>
        </dashboard>
    </admin>
</configdata>

here is my bootsrapping method.

public function _initNavigation()
{
    $this->bootstrap('layout');
    $layout = $this->getResource('layout');
    $view = $layout->getView();
    $config = new Zend_Config_Xml(APPLICATION_PATH.'/configs/navigation.xml', 'admin');
    $navigation = new Zend_Navigation($config);
    $view->navigation($navigation);
}

and my admin layout admin.phtml contains

<?php echo $this->navigation()->menu(); ?>

the problem is the navigation menu dashboard changes accordingly with the current module/controller/action

for instance.

if:
current page: admin/dashboard/index
generates `<a href="/admin/dashboard">Dashboard</a>`

if:
current page: admin/item/index
generates `<a href="/admin/item">Dashboard</a>`

whereas for second i expect the url not to change. the second method should generate

current page: admin/item/index
generates `<a href="/admin/dashboard">Dashboard</a>`

what is happening?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:27:54+00:00Added an answer on June 1, 2026 at 6:27 pm

    Do you have multiple routes defined? if so, add a <route> key to your <dashboard> section of the navigation.xml file that has the correct route name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem using a CSV file uploaded via a PHP form. Here
I'm having a problem using deploy:deploy-file with snapshots I'd like some advice on please.
I am having problem using the if/then/else statements. here is my context: $email =
I'm having a problem using XML literals with a StringBuilder in VB 2008. If
I having problem using CHCSVwriter to export my arrays to CSV or excel file.
I'm having a strange problem with Zend Framework under Ubuntu 11.10. I'm using a
I'm having a problem using UpdateModel(theModelToUpdate) causing concurrency issues. Basically whats happening is, there
I am having a problem using the signedCMS.decode routine. See the code below. The
I'm having a problem using Moxy to marshal/unmarshal Salesforce outbound message XMLs. The exception
I'm having the following problem using the Visual Studio 2010 Team System Beta 1:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.