Need to remove /index/ form URLs in my Zend_Navigation XML config

Posted by jwhat on Stack Overflow See other posts from Stack Overflow or by jwhat
Published on 2010-03-13T22:22:49Z Indexed on 2010/03/13 22:25 UTC
Read the original article Hit count: 209

I'm using Zend_Navigation to create my nav. I want the URL to be domain.com/me and not domain.com/index/me. What is wrong with my config XML:

<?xml version="1.0" encoding="UTF-8"?>
<config>
  <nav>
    <home>
      <label>Home</label>
      <controller>index</controller>
      <action>index</action>
      <pages>
        <me>
          <label>Me</label>
          <module>default</module>
          <controller>index</controller>
          <action>me</action>
          <resource>user</resource>
          <privilege>logout</privilege>
        </me>
      </pages>
    </home>
  </nav>
</config>

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-navigation