zend-navigation

Zend: Creating breadcrumb navigation with Zend_Config_Xml and Zend_Navigation

I'm having an issue, an exception is thrown when Zend_Navigation is being invoked on an instance of Zend_Config_Xml. Here's the method in which it fails in ( Bootstrap.php ): protected function _initNavigation() { $this->bootstrap('layout'); $layout = $this->getResource('layout'); $view = $layout->getView(); $config = new Zend_Config_X...

Zend_Navigation: Having trouble getting breadcrumbs to render using multiple containers

I'm trying to make breadcrumbs render in my application ( they don't show up anywhere, not even the homepage, which has a corresponding Zend Page Uri object ), which has multiple navigation areas - primary and utility. For the menu generation, I have a MenuController which I render with from within the layout using: $this->layout()->uti...

Zend_Navigation

I want to give more than one links using by Zend_Navigation for example echo $this->navigation()->topmenu(); echo $this->navigation()->menu(); echo $this->navigation()->footermenu(); like this, but I can't give more than one links. When I use like following code just works this one echo $this->navigation()->menu(); I use like...

Login/Logout links in database driven navigation?

I have a database driven navigation mainly composed of two tables: menus and a menu_items, this works out fine for purely "static" links but now I need to have a dynamic link ( login/logout ). My menu_items table is just composed of links to pages manually added in the admin. So now I need to adjust the table and model possibly such tha...

Custom rendering of Zend_Navigation

I am using a navigation XML file in conjunction with my Zend Framework MVC app. A top level menu is rendered at the top of my layout. The code to produce it looks like this: $this->navigation()->menu()->renderMenu(null,array('maxDepth' => 0)); This will automatically render an unordered list of links that I have styled into my top...

Zend navigation from action

<ul> <li> <a href="<?= $this->route('list', 'test1', 'default', array(), null, false) ?>">Test1 </a> </li> <li> <a href="<?= $this->route('list', 'test1', 'default', array(), null, false) ?>">Test2 </a> </li> <li> <a href="<?= $this->route('list', 'test3', 'default', array(), nu...

Zend: How can I globally set the current navigation item?

config: resources.frontController.plugins.nav = "WD_Controller_Plugin_Nav" bootstrap: protected function _initAutoloader() { $loader = Zend_Loader_Autoloader::getInstance(); $loader->registerNamespace('WD_'); return $loader; } protected function _initNav() { $this->bootstrap('layout'); $layout = $this->getResource('layout'); $...

Zend_Navigation overwrite with array?

Hello, I currently use zend_navigation via an XML file. However I need to overwrite the previous breadcrumb to be its dynamic parent, in the controller. Is this possible? It seems to me that zend_navigation is fairly static and the zend documentation keeps timing out. Thanks ...

Zend_Translate - Zend_Navigation and Routing combination problem!

Hello there, I'm having some difficulties with the combination of Zend_Navigation, Zend_Translate and the routing needed. My site navigation is done through Zend_Navigation based on and XML file. I've now added translation to the site based on Zend_Translate and added to following change of routing to the bootstrap: protected function...

How do I extend the Zend Navigation Menu View Helper?

I need to change the output of Zend_View_Helper_Navigation_Menu. I've found the two functions that I'll need to modify, and I know how to make the changes I need. What I don't know is how to make the Navigation object use my view helper instead of the Zend one. Code snippet representing my class extension: // file /library/My/View/He...

zend-framework navigation

i have this xml file for Creating a container , if i want create a db for save this items and and create container from db how should i do ? <?xml version="1.0" encoding="utf-8"?> <config> <nav> <logout> <label>logout</label> <controller>authentication</controller> <action>logout</actio...

How to swap Login for Logout after a user logs in using Zend_Navigation?

I'm using an XML config file to populate my navigation using Zend_Navigation. I have Login and Logout in the navigation, but obviously I should only display the 1 action that makes sense. I believe I can do something like $navigation->removePage() but... How do I get the $navigation variable in a Controller after it was previously crea...

Giving Zend Navigation Pages Multiple ACL Privileges

I'm using Zend_Navigation and am trying to integrate it with Zend_Acl. Each page in the navigation has a privilege attribute. What I can't determine is how to define multiple privileges for a single page. Use case: A page that is for managing users. I want to display that page (in navigation) if the current signed in user's role has ...

Finding if the current page is in a Zend Navigation object

I have more than one Zend_Navigation object in my application. I want to do a test to find out which object holds the page I'm currently on. I didn't see methods for doing that in the documentation. Can this be accomplished? How? Thanks! ...

zend_navigation and modules

Hi, I am developing an application at the moment with zend and I have seperated the app into modules. The default module is the main site where unlogged in users access and have free reign to look around. When you log in, depending on the user type you either go to module A or module B, which is controlled by simple ACLs. If you ha...

Zend_Navigation failing to load

Hi, Following on from my earlier question, I am still having issues with loading the xml file into Zend_Navigation. I am now getting the following error message: <b>Fatal error</b>: Uncaught exception 'Zend_Navigation_Exception' with message 'Invalid argument: Unable to determine class to instantiate' in C:\www\mysite\development\w...

Add Zend_Navigation to the View with old legacy bootstrap

Hi, I've been struggling with Zend_Navigation all weekend, and now I have another problem, which I believe has been the cause of a lot of my issues. I am trying to add Zend_Navigation to a legacy 1.7.6 Zend Framework application, i've updated the Zend Library to 1.9.0 and updated the bootstrap to allow this library update. The problem...

Zend_Nav in zend framework issue getting menu to show up

Hi ! First time of here, so please bare with me. I have to following problem, using zend framework, specifically zend_nav to create a reusable menu to be passed in via the layout/layout.phtml page. These are the code fragments in their respective files. first of in application/configs/navigation.xml, <configdata> <nav> ...

Adding Parameters to Zend_Navigation

I have a problem with Zend_Navigation that I am hoping for a little guidance on. I'm in the process of adding a Zend_Navigation to a legacy app as described [here on SO].1 The thing that I am not sure of is how to add parameters to the navigation menu after the data is loaded from the xml file. What I want to do is get 2 identifying p...

Zend Navigation add extra id

I made a menu with zend_navigation, using an ini file. That work well. If I look at the code, i see that zend has added a class, to the ul element. With a name that i use in my ini file. But now I want to add also a id to the ul element. How can I do this? protected function _initNavigation() { $this->bootstrap('layout'); $lay...