View Single Post
  #1 (permalink)  
Old 09-03-2008, 07:40 PM
drj201 drj201 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Arrow Breadcrumb implementation...

Hi all,

Im a ZF newbie so bare with me. Ive been working with it for a few weeks and love it.

My main problem with it however is the lack of a "right way" of doing things.. there seems to be no agreed structure etc so it makes it extremely difficult when searching for answers on the web.

Basically I am trying to implement a breadcrumb structure into my application. The simple answer might be a view helper that simply takes the current action, controller etc from the URL so example.com/news/uk is transformed into: Home >> News >> UK.

As you are already thinking this is a poor implementation for many obvious reasons. My question then is how would you propose I implement this? Maybe initialise the breadcrumb trail in the front controller? Then add to the trail in respective controller actions? So in front controller I could initialise a trail and add "Home"... then in the NewsController I could assign "News" and then in the UKaction I could assign "UK". Does this sounds viable? How would I initialise this in the front controller?

I really need help on this. Any help appreciated.

Regards,

David
Reply With Quote