I need a little advice how to make Zend Framework breadcrumbs more complex than
“Home page / controller / action”.
I want to use nested categories for displaying aricles in my blog module. So breadcrumbs should look like this:
Home page / Blog / Category_1 / Category_1-1 / Category_1-1-1 / Post title
Can someone give me a little briefing for this?
I can implement categories/subcategories by setting parent item ID for each blog post and iterate over all entries to build simple php array or use Composite pattern or do it in any other sugested way.
But i don’t have any idea how to build that complex breadcrumbs. Can I plug-in in to the breadcrumbs generation process somehow?
I use modified view placeholder – it supports varous dividers and it’s easy to build by extending the view placeholder class.