I have complex routes, that means I have routes that requires db
access (no other way to do it). I have implemented a custom router
that has a cache in order to cache common routes and speed up the
routing process. However, if I analyze my own routes I see the
following pattern:
/<resource>/controller/action
where <resource> can have one or more segments (ex. "/contryname/
cityname/" or "/zipcode/" or "/countryname/cityname/address/").
What is the best way to implement it?
I have implemented it with a custom router chain (yes, router chain,
where each router has a chain of routes) but I'm not very satisfied.
Thanks,
Marco Pracucci
没有评论:
发表评论