Reputation: 17576
I am using breadcrumbs in my zend application, the question is I have to use dynamicallly changing parameters.
In my breadcrumb it should be:
Manage hotels -> hotel1 -> rates -> add rate
the hotel is changing, but I can only do
Manage hotels-> rates -> add rate
I can't add the dynamically changing hotel name to my breadcrumb, how can I do this, is there any way to do this?
Upvotes: 5
Views: 1755
Reputation: 1184
You should be able to change the breadcrumbs dynamically. You can generate a navigation object from the database, You can find out how to create a navigation object in the following link..
http://framework.zend.com/manual/en/zend.navigation.pages.html
You can keep the Hotel Name as a hidden due (0), but to enable them for the breadcrumbs use the following: $this->navigation()->breadcrumbs()->setRenderInvisible(TRUE);
Upvotes: 3