[eluser]crises[/eluser]
Hi all! First of all, in english im not as good as i would like to be, so my apologies if any mistake is done.
Well my question is kind of simple, but after some hours of research i wasn't able to find any answer out there, so here i come. I think i know how "default" url routing works (domain.com/controller/method/params) and all that stuff, but now im developing a new app and my needs are a little bit diferent. Let me explain with some examples.
Basically what im developing is a business directory, and my first approach to a routing would be this:
- domain.com/cats_controller/category for a "root" category
- domain.com/cats_controller/subcategory for a child category
Here comes my first trouble... my desire is to have an url structure like this:
-domain.com/category/subcategory
If i had only one controller in my app i know this could be resolved easily by passing the whole url to this specific controller, but how do i know to which controller should i pass the url if i have two or more of them?
So if i had a second controller to show the listings, supose this:
- domain.com/listings_controller/busines_name
I would like it to be something like:
- domain.com/category/subcategory/busines_name
Including all the "path", like a breadcrumb navigation but in the URL itself.
Well thats my problem right now, i dont know if i have explained myself in the correct way, i hope you people could understand and give me some help.
Thank you!