I am building a shopping plugin and at the point where I am stuck with
routing the correct/ custom path and breadcrumbs.
The Category model actsAs Tree so that houses all the categories / sub
categories and the product belongs to the specific category so all that is
fine.
The end goal is to be something like site/products/mens/shoes/{product_slug}
but how to properly build the route with unknown levels of the path since
the end admin can make it to an unknown level deep like
site/products/womens/jackets/leather/spring/{product_slug}
And same for the breadcrumb trail to easily navigate back any number of
steps if needed.
What is the correct way to do this?
And is the best to paginate from which controller (products or categories?)
Pull products based on the category in ProductsController or get products
based on the Category.id in CategoriesController
$this->Category->Product->getProducts($category_id)?
Thanks for any insight / best approach.
Dave
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.