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> Link to comment https://forums.phpfreaks.com/topic/224509-zend-framework-horizontal-menu/ 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. Link to comment https://forums.phpfreaks.com/topic/224509-zend-framework-horizontal-menu/#findComment-1159722 Share on other sites More sharing options...
colap Posted January 15, 2011 Author Share Posted January 15, 2011 Thank. Editing CSS did the trick. Link to comment https://forums.phpfreaks.com/topic/224509-zend-framework-horizontal-menu/#findComment-1159727 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.