colap Posted January 15, 2011 Share Posted January 15, 2011 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> Quote Link to comment Share on other sites More sharing options...
trq Posted January 15, 2011 Share Posted January 15, 2011 Look at the html it produces then style it accordingly. This has nothing to do with Zend or PHP, its a html CSS issue. Quote Link to comment Share on other sites More sharing options...
colap Posted January 15, 2011 Author Share Posted January 15, 2011 Thank. Editing CSS did the trick. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.