How can I get dynamic routes |
Hi everyone,
How can I get dynamic routes? For example, I have ecommerce system and there I may have posts, manufacturers, and products. All of these paths I have in DB so how can I distinguish that? I want to have only the product name in path without id or any 'product/', 'post/', ''manufacturer/' in path. I need something like routes based on db. For example: URL: /my-lovely-tshirt Controller: ProductController:how(15) URL: /best-manufacturer Controller: ManufacturerController:how(3) Thank for answers |
Messages In This Thread |
How can I get dynamic routes - by Michal_PB1 - 11-25-2019, 11:51 AM
RE: How can I get dynamic routes - by Michal_PB1 - 11-27-2019, 01:15 PM
|