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

[eluser]pixagrafik[/eluser]
Thanks! Works great. I knew there had to be more to it than just that uri object method. Great work. Now, to devise a way to do some type of automated output method switching based on the .format such that by default, it renders html, but if .json is called, for example, it a default ouput function is called and the previously set up view arguments are set up.
I suppose it might even be possible to use templates for this, much like views. A post_controller hook might be used to perform the output object translation and formatting. Anything is possible with software!


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