|
|||
|
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 ![]() |
|
|||
|
Have you seen this article?
Breadcrumbs with Zend Framework | Joey Adams Dot Net That helped me out with my code. ~Dan |
|
|||
|
I'm doing mine somewhat manually. At the end of each controller action I have
PHP Code:
|
|
|||
|
Quote:
<33 Awesome |
|
|||
|
Quote:
http://blog.tommilewski.net/2008/10/...dcrumb-helper/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|