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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:53:38+00:00 2026-05-19T09:53:38+00:00

HI, my xml file is as follows <?xml version=1.0?> <config> <nav> <home> <label>HOME</label> <controller>index</controller>

  • 0

HI,

my xml file is as follows

<?xml version="1.0"?>
<config>
<nav>
    <home>
        <label>HOME</label>
        <controller>index</controller>
        <action>index</action>
    </home>

    <aboutus>
        <label>ABOUT US</label>
        <controller>about-us</controller>
        <action>index</action>
    </aboutus>

    <destination>
        <label>DESTINATION</label>
        <controller>destination</controller>
        <action>index</action>
    </destination>

</nav>
</config>

for code in my layout.phtml file

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

i get the result

<ul class="navigation">
    <li class="active">
    <a href="/globaltours.com/public/">HOME</a>
    </li>
    <li>

    <a href="/globaltours.com/public/about-us">ABOUT US</a>
    </li>
</ul>

but i want the result

<ul class="navigation">
    <li class="active">
    <a href="/globaltours.com/public/">HOME</a>
    </li>

    <li classs="sep"></li>

    <li>

    <a href="/globaltours.com/public/about-us">ABOUT US</a>
    </li>
</ul>

Note the separator between two list. Help me out.

  • 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-19T09:53:39+00:00Added an answer on May 19, 2026 at 9:53 am

    If you HAVE to have the sep there and you cannot amend your CSS as @trickwallett suggested then you can query the navigation directly and then iterate over it yourself. Note that if you do this you will need to apply your own ACL rules.

    $config = new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml');
    
    $container = new Zend_Navigation($config);
    
    $pages = $this->navigation($container)->findAllById("main");
    
    foreach ($pages as $i => $page)
    {
        if(!$page->getVisible())
            continue;
    
        echo $this->menu()->htmlify($page);
    }
    

    There I use findAllById() but there are many others documented here

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

Sidebar

Related Questions

I would like to have an xml config file as follows: <?xml version=1.0 encoding=utf-8
I have an XML file as follows, and I'm trying to read the content
One of my nodes inmy xml file is as follows. <LOGIN_ID NAME=Kapil> <SEARCH_ID>Kapil Koli</SEARCH_ID>
I am looking at an XML file that looks as follows: <test> <vehiclenumber>123</vehiclenumber> <form>
I have an XML document as follows: <directory> <file><monitored>0</monitored> <xferStatus>1</xferStatus> <name>test1.txt</name> <size>7</size> <created>03/31/10 11:30:02
my Xml file : <?xml version=1.0 encoding=utf-8?> <ArrayOfCustomer xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema> <Customer> <CustomerId>1f323c97-2015-4a3d-9956-a93115c272ea</CustomerId> <FirstName>Aria</FirstName> <LastName>Stark</LastName>
I have an XML file as follows. When I use getElementsByTagName(LEVEL2_ID) , I do
I'm using an XML based .config file for storing some records. My XML is
The 1.0.0.0 version of my Feature's Template.xml file looked like this: <?xml version=1.0 encoding=utf-8
I'm trying parse the follow XML file: <root>Root <pai>Pai_1 <filho>Pai1,Filho1</filho> <filho>Pai1,Filho2</filho> </pai> <pai>Pai_2 <filho>Pai2,Filho1</filho>

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.