Welcome Guest, Not a member yet? Register   Sign In
Remap or URI Routing or What?
#4

[eluser]mddd[/eluser]
I think both solutions are fine. A matter of taste.

You're right that if /communities/some-community/non-existing-method is called, it will give a 'page not found' error because it it rewritten to /communities/non-existing-method/some-community and that method is not found. But you have to decide if that is what you want. If you use _remap and you find that the community exists but the method doesn't, you can still just run the 'show community' method and prevent a 404 situation. That kind of thing is easier to do using _remap. If you use routes you try to be smart, but after the routes processing the method has to exist or you get a 404..


Messages In This Thread
Remap or URI Routing or What? - by El Forum - 08-05-2010, 01:59 AM
Remap or URI Routing or What? - by El Forum - 08-05-2010, 02:12 AM
Remap or URI Routing or What? - by El Forum - 08-05-2010, 02:21 AM
Remap or URI Routing or What? - by El Forum - 08-05-2010, 02:28 AM
Remap or URI Routing or What? - by El Forum - 08-05-2010, 02:38 AM
Remap or URI Routing or What? - by El Forum - 08-05-2010, 02:50 AM
Remap or URI Routing or What? - by El Forum - 08-05-2010, 03:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB