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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:10:32+00:00 2026-05-26T13:10:32+00:00

Using Zend, I want to create a navigation like: <ul class=navigation> <li> <a href=/coupon/index/all></a>

  • 0

Using Zend, I want to create a navigation like:

<ul class="navigation">
    <li>
        <a href="/coupon/index/all"></a>    
    </li>   
    <li>
        <a href="/coupon/index/most-popuplar">Most Popular</a>
    </li>
    <li>
        <a href="/coupon/index/most-recent">Most Recent</a>
    </li>
    <li>
        <a href="/coupon/index/ending-soon">Ending Soon</a>
    </li>
</ul>

But when I used Zend Navigation with config like below:

<?xml version="1.0" encoding="UTF-8"?>
<configdata>
    <nav>
        <label>All</label>
        <module>coupon</module>
        <controller>index</controller>
        <action>all</action>
        <pages>
            <popuplar>
                <label>Most Popular</label>
                <module>coupon</module>
                <controller>index</controller>
                <action>most-popuplar</action>
            </popuplar>
            <recent>
                <label>Most Recent</label>
                <module>coupon</module>
                <controller>index</controller>
                <action>most-recent</action>
            </recent>
            <ending>
                <label>Ending Soon</label>
                <module>coupon</module>
                <controller>index</controller>
                <action>ending-soon</action>
            </ending>
        </pages>
    </nav>
</configdata>

The result is always:

<ul class="navigation">
    <li>
        <a href="/coupon/index/all"></a>
        <ul>
            <li>
                <a href="/coupon/index/most-popuplar">Most Popular</a>
            </li>
            <li>
                <a href="/coupon/index/most-recent">Most Recent</a>
            </li>
            <li>
                <a href="/coupon/index/ending-soon">Ending Soon</a>
            </li>
        </ul>
    </li>
</ul>

So, I know that I am wrong with my config, but I don’t know how to make it becomes correct. Could you please help me. Many thanks.

  • 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-26T13:10:33+00:00Added an answer on May 26, 2026 at 1:10 pm

    I believe the only way to fix this is to move your allAction into the pages node. And really that’s the way it should be structured, because you’re not using an indexAction. You’ve put your allAction where the indexAction should be.

    If you don’t have an indexAction, you should just ignore it in your XML navigation config, as well. That will at least get you closer to what you’re looking for.

    Or, if you’re looking to use this config for general purpose, you should add the indexAction where you have the allAction right now, and then do something like this in your layout or other view (or wherever):

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

    Then in your css file:

    .navigation ul li {
        display: inline;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Zend Framework to create an API I want to use apache
I want to create a form similar to drupal's permissions form (https://i.stack.imgur.com/qJunz.jpg) using zend
I am using Zend Framework 1.10.8. I want to create a breadcrumb section in
I am using zend framework and want to create a zend form where the
I m using zend. I want to define the below code outside the controller
I want to get the out parameter of stored procedure using Zend framework Here's
I want to write a worker for beanstalkd in php, using a Zend Framework
I am using zend framework 1.10. I use the zf tool to create controllers,
I am using zend framework on windows. I want to implement ajax in my
I am using Zend Framework 1.9.6. I want to start using cron jobs. I

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.