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 3841954
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:43:29+00:00 2026-05-19T15:43:29+00:00

EDIT:: the problem was caused due to zend route please check updates I am

  • 0

EDIT::
the problem was caused due to zend route please check updates

I am using xml file for navigation.

EDIT::the following code is from layout.phtml file

$config = new Zend_Config_Xml(APPLICATION_PATH.'/configs/adminnav.xml', 'nav');
$container = new Zend_Navigation($config);
$this->navigation()->setContainer($container);
echo $this->navigation();

when i am in my edit page, all don’t any menu link. all get is /admin/controller/edit/ everywhere on menu item. any idea?

my edit action takes id, if id is not supplied then it will generate and error. however add and list method works fine

UPDATES::

<?xml version="1.0"?>
<config>
<nav>
    <home>
        <label>home</label>
        <uri>#</uri>
        <pages>
            <home>
                <label>home</label>
                <module>admin</module>
                <controller>home</controller>
                <action>index</action>
            </home>
            <help>
                <label>help</label>
                <module>admin</module>
                <controller>home</controller>
                <action>help</action>
            </help>
        </pages>
    </home>
    <page>
        <label>pages</label>
        <uri>#</uri>
        <pages>
            <static>
                <label>static pages</label>
                <module>admin</module>
                <controller>page</controller>
                <action>index</action>
            </static>
            <editpage>
                <label>static pages</label>
                <module>admin</module>
                <controller>page</controller>
                <action>edit</action>           
            </editpage>
        </pages>
    </page>

    <destination>
        <label>destinations</label>
        <uri>#</uri>
        <pages>
            <list>
                <label>list all</label>
                <module>admin</module>
                <controller>destination</controller>
                <action>index</action>
            </list>
            <featured>
                <label>featured</label>
                <module>admin</module>
                <controller>destination</controller>
                <action>featured</action>                   
            </featured>
            <add>
                <label>add destination</label>
                <module>admin</module>
                <controller>destination</controller>
                <action>add</action>
            </add>
            <editdest>
                <label>edit destination</label>
                <module>admin</module>
                <controller>destination</controller>
                <action>edit</action>           
            </editdest>
        </pages>
    </destination>

    <tours>         
    <label>tours</label>
        <uri>#</uri>
        <pages>
            <list>
                <label>list tours</label>
                <module>admin</module>
                <controller>tour</controller>
                <action>index</action>
            </list>
            <featured>
                <label>featured tours</label>
                <module>admin</module>
                <controller>tour</controller>
                <action>featured</action>
            </featured>
            <add>
                <label>add tours</label>
                <module>admin</module>
                <controller>tour</controller>
                <action>add</action>
            </add>
            <edittour>
                <label>edit tours</label>
                <module>admin</module>
                <controller>tour</controller>
                <action>add</action>
            </edittour>
        </pages>
    </tours>

    <hotels>            
    <label>hotels and resort</label>
        <uri>#</uri>
        <pages>
            <list>
                <label>list hotel</label>
                <module>admin</module>
                <controller>hotel</controller>
                <action>index</action>
            </list>
            <add>
                <label>add hotel</label>
                <module>admin</module>
                <controller>hotel</controller>
                <action>add</action>
            </add>
            <edithotel>
                <label>add hotel</label>
                <module>admin</module>
                <controller>hotel</controller>
                <action>add</action>
            </edithotel>
        </pages>
    </hotels>

    <message>           
        <label>message</label>
        <uri>#</uri>
        <pages>
            <all>
                <label>all message</label>
                <module>admin</module>
                <controller>message</controller>
                <action>index</action>
            </all>
            <contactus>
                <label>contact</label>
                <module>admin</module>
                <controller>message</controller>
                <action>contact</action>
            </contactus>
            <inquiry>
                <label>inquiry</label>
                <module>admin</module>
                <controller>message</controller>
                <action>inquiry</action>
            </inquiry>
            <reservation>
                <label>reservation</label>
                <module>admin</module>
                <controller>message</controller>
                <action>reservation</action>
            </reservation>
        </pages>
    </message>

    <advertisement>         
        <label>advertisement</label>
        <uri>#</uri>
        <pages>
            <list>
                <label>list ads</label>
                <module>admin</module>
                <controller>advertisement</controller>
                <action>index</action>
            </list>
            <add>
                <label>add ads</label>
                <module>admin</module>
                <controller>advertisement</controller>
                <action>add</action>
            </add>
            <editad>
                <label>edit ads</label>
                <module>admin</module>
                <controller>advertisement</controller>
                <action>edit</action>
            </editad>
        </pages>
    </advertisement>

    <setting>           
        <label>settings</label>
        <uri>#</uri>
        <pages>
            <view>
                <label>view</label>
                <module>admin</module>
                <controller>setting</controller>
                <action>view</action>
            </view>
            <account>
                <label>account setting</label>
                <module>admin</module>
                <controller>setting</controller>
                <action>account</action>
            </account>
            <site>
                <label>site setting</label>
                <module>admin</module>
                <controller>setting</controller>
                <action>site</action>
            </site> 
        </pages>
    </setting>
</nav>
</config>

UPDATE::route for the edit action on bootstrap.php

    $frontcontroller = Zend_Controller_Front::getInstance();
    $router = $frontcontroller->getRouter('router');

    //add route  for edit page so that pageid is not displayed in the url
    $router->addRoute(
        'edit-page',
        new Zend_Controller_Router_Route('admin/page/edit/:pageid', array(
            'module' => 'admin',
            'controller' => 'page',
            'action'    => 'edit',
            'pageid'    => 'pageid'
        ))
    );

UPDATE::to Phil

<editdest>
    <label>edit destination</label>
    <module>admin</module>
    <controller>destination</controller>
    <action>edit</action>   
    <route>12</route>       
</editdest>

Error for this::

Fatal error: Zend_Controller_Router_Exception: Route 12 is not defined in
/usr/share/php/libzend-framework-php/Zend/View/Helper/Navigation/HelperAbstract.php 
on line 522 
  • 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-05-19T15:43:30+00:00Added an answer on May 19, 2026 at 3:43 pm

    If there are any static routes involved, you need to set the route name on all navigation pages. This is because the navigation view helper uses the Url view helper to create links.

    If there is no route name present, it uses the current route.

    If the current route is a static one, it will only ever resolve to one URL, no matter what parameters are thrown at it.

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

Sidebar

Related Questions

Problem: I have to support users who need to edit web pages. Some of
Edit: This was accidentally posted twice. Original: VB.NET Importing Classes I've seen some code
I am using a backgroundworker that can have n instances. Problem is the DoWork
Edit: This question was written in 2008, which was like 3 internet ages ago.
Edit: From another question I provided an answer that has links to a lot
EDIT: This was formerly more explicitly titled: - Best solution to stop Kontiki's KHOST.EXE
EDIT: Learned that Webmethods actually uses NLST, not LIST, if that matters Our business
EDIT: This question is more about language engineering than C++ itself. I used C++
EDIT What small things which are too easy to overlook do I need to
Edit : Solved, there was a trigger with a loop on the table (read

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.