Jump to content

Zend Framework horizontal menu


colap

Recommended Posts

Can anyone post code for Zend Framework horizontal menu?

This doesn't look like a horizontal menu:

<div>
    <?php
            
    $pages = array(
        array(
            'label' => 'Home',
            'controller' => 'index',
            'action' => 'index',
        ),
        array(
            'label' => 'A',
            'controller' => 'index',
            'action' => 'b',
        ),
        array(
            'label' => 'P',
            'controller' => 'index',
            'action' => 'b',
        ),
        array(
            'label' => 'Add',
            'controller' => 'index',
            'action' => 'b',
        ),
        array(
            'label' => 'S',
            'controller' => 'index',
            'action' => 'index',
        ),
        array(
            'label' => 'A',
            'controller' => 'index',
            'action' => 'a',
        ),
        array(
            'label' => 'B',
            'controller' => 'index',
            'action' => 'b',
        )
    );
    $container = new Zend_Navigation($pages);
    Zend_Registry::set('Zend_Navigation', $container);
    
        
    ?>
</div>
<br/>
<div>
    <?php
    echo $this->navigation()->menu();    
    echo 'You are in: '.$this->navigation()->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->render();
    ?>
</div>

Link to comment
https://forums.phpfreaks.com/topic/224509-zend-framework-horizontal-menu/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.