Welcome Guest, Not a member yet? Register   Sign In
Getting the requested "format" from a route
#2

[eluser]pixagrafik[/eluser]
I'd like to know the answer to that too. I suppose it wouldn't be difficult to plumb this in. I'm guessing that the router would need to strip the extension off of the requested URL and then set that as a variable somewhere
where your controller/models/etc would have access to it so it could do the right thing informatting the data. Basically, this is overriding the display or view, to instead call normal HTML view, it would call some type of XML view formatter.


Messages In This Thread
Getting the requested "format" from a route - by El Forum - 12-12-2007, 04:44 PM
Getting the requested "format" from a route - by El Forum - 12-13-2007, 12:20 AM
Getting the requested "format" from a route - by El Forum - 12-13-2007, 01:36 AM
Getting the requested "format" from a route - by El Forum - 12-13-2007, 02:01 AM
Getting the requested "format" from a route - by El Forum - 12-14-2007, 12:09 AM
Getting the requested "format" from a route - by El Forum - 12-14-2007, 03:01 AM
Getting the requested "format" from a route - by El Forum - 12-14-2007, 09:09 AM
Getting the requested "format" from a route - by El Forum - 12-14-2007, 06:04 PM
Getting the requested "format" from a route - by El Forum - 12-14-2007, 06:06 PM
Getting the requested "format" from a route - by El Forum - 12-14-2007, 09:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB