Kanishka Panamaldeniya
Kanishka Panamaldeniya

Reputation: 17576

How to add dynamically changing parameters to a breadcrumb in zend framework

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

Answers (1)

Deepu S Nath
Deepu S Nath

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

Related Questions