Hi cakers, Have switched my current project to 1.3, and have a theoretical Q re routes. Is it possible to have routes composed of a varying number of parts, which sometimes have things on the end, sometimes don't ? an example might be handy:
http://www.domain.com/shop/ <- shop home http://www.domain.com/shop/category <- level 1 category http://www.domain.com/shop/category/category <- level 2 category http://www.domain.com/shop/category/category/id-product <- product in level 2 category http://www.domain.com/shop/category/category/category/category/id-product <- product in level 4 category is this feasible? Can I check for 'number-slug' at the end, or should I have a static part to the url so I can isolate the product handle more easily, such as '/product/handle' ? I can feasibly assume that my client won't go deeper than 5, so I could hard-code 10 routes rather than attempt to match a varying number of categories in a url. thanks for any insight. Cheers, J -- jon bennett - www.jben.net - blog.jben.net Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
