Welcome Guest, Not a member yet? Register   Sign In
Move first segment to last segment?
#3

[eluser]jedd[/eluser]
Quote:To give this some context... the URI will look something like /projectID/module/controller/function/var/iab/les/ (this is where the ambiguity comes in as there can be any number of variables added onto the URI) and I want to move the project ID to the end so that the controller and function can be called.

Hi thesf,

First preference would be to not have to do this wrangling. Do you control where these 'arriving' URLs are being generated, and/or how they are?

My second preference would be to avoid routes (or at least the complex ones you may be looking at writing) and prefix the arrival URL's with something that will throw it straight into a dedicated controller that can more intelligently re-mangle your URL and then redirect you to the right place. It'd pretty ugly though.


Messages In This Thread
Move first segment to last segment? - by El Forum - 03-16-2009, 07:39 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 07:44 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 08:40 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 08:43 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 09:09 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 09:21 AM
Move first segment to last segment? - by El Forum - 03-16-2009, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB