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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:48:47+00:00 2026-05-21T18:48:47+00:00

hi i want to use a breadcrumb for my zend framework application i craeted

  • 0

hi i want to use a breadcrumb for my zend framework application

i craeted navigation.xml in configs folder where application.ini is .

and in the bootstarp i added following code

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

    $navigation = new Zend_Navigation($config);
    $view->navigation($navigation);
}

and in the layout i added folllowing code

    <div id="menu">
        <?php echo $this->navigation()->menu(); ?>
    </div>
    <div id="breadcrumbs">
        You are in: <?php echo $this->navigation()->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->render(); ?>
    </div>

it is not working , errors are given

Fatal error: Uncaught exception 'Zend_Navigation_Exception' with message 'Invalid argument: Unable to determine class to instantiate' in /home/kanishka/workspace/jetwing_ibe/library/Zend/Navigation/Page.php:223 
Stack trace: 
#0 /home/kanishka/workspace/jetwing_ibe/library/Zend/Navigation/Container.php(117): Zend_Navigation_Page::factory(Array) 
#1 /home/kanishka/workspace/jetwing_ibe/library/Zend/Navigation/Container.php(164): Zend_Navigation_Container->addPage(Array) 
#2 /home/kanishka/workspace/jetwing_ibe/library/Zend/Navigation.php(46): Zend_Navigation_Container->addPages(Object(Zend_Config_Xml)) 
#3 /home/kanishka/workspace/jetwing_ibe/application/Bootstrap.php(94): Zend_Navigation->__construct(Object(Zend_Config_Xml)) 
#4 /home/kanishka/workspace/jetwing_ibe/library/Zend/Application/Bootstrap/BootstrapAbstract.php(666): Bootstrap->_initNavigation() 
#5 /home/kanishka/workspace/jetwing_ibe/library/Zend/Application/Bootstrap/BootstrapAbstract.php(619): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('navigati in /home/kanishka/workspace/jetwing_ibe/library/Zend/Navigation/Page.php on line 223 

this is my xml file

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <nav>
        <dashboard>
            <label>dashboard</label>
            <controller>dashboard</controller>
            <action>index</action>
            <resource>dashboard</resource>  
            <pages>
                <rates>
                    <label>Rates</label>
                    <controller>rates</controller>
                    <action>index</action>
                    <pages>
                        <index>
                            <label>index</label>
                            <controller>rates</controller>
                            <action>index</action>
                            <class>dontdisplay</class>
                        </index>                
                    </pages>
                </rates>
                <occupancydenomination>
                    <label>Occupancydenominations</label>
                    <controller>occupancydenomination</controller>
                    <action>index</action>
                    <pages>
                        <index>
                            <label>Occupancydenomination</label>
                            <controller>occupancydenomination</controller>
                            <action>index</action>
                            <class>dontdisplay</class>
                        </index>
                        <add>
                            <label>Add Occupancydenomination</label>
                            <controller>occupancydenomination</controller>
                            <action>add</action>
                            <class>dontdisplay</class>
                        </add>
                    </pages>
                </occupancydenomination>
            </pages>        
        </dashboard>
    </nav>
</config>   

i am not sure what the error is . please help me …………….

  • 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-21T18:48:47+00:00Added an answer on May 21, 2026 at 6:48 pm

    The error is due to your config file.

    You’re not providing enough parameters for the navigation container to determine the correct page type, Zend_Navigation_Page_Mvc or Zend_Navigation_Page_Uri.

    Also, you know there’s a navigation resource plugin, right?

    UPDATE

    Get rid of the <nav> wrapper element. It’s trying to interpret that as a page.

    That or do follow the example and specify the config section correctly

    $config = new Zend_Config_Xml('/path/to/navigation.xml', 'nav');
    $container = new Zend_Navigation($config);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So i've followed the tutorial Zend Framework: Navigation and Breadcrumbs with an XML File
I want use MVVM design pattern in WPF and Silverlight Application. Where can i
I have got a problem with the zend navigation. I use the zend navigation,
I want use $.ajax to read some infomation from xml file,here is my js
I want use a Linq IQueryable Toolkit in project on .NET Compact Framework. The
I want use WPF on Windows version of my java application. I found it
I want use $.ajax get a url string from a xml file ,then with
I want use my web application on port 8082 (for example), and it is
I need a little advice how to make Zend Framework breadcrumbs more complex than
I want use on my rails helper a script as follow: select_tag(:article_id, option_groups_from_collection_for_select( @article,

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.