Welcome Guest, Not a member yet? Register   Sign In
passing data to "sub-templates"
#5

[eluser]Phil Sturgeon[/eluser]
Thats a slightly dirty method of using code in views, you should try to limit that sort of thing and prepair as much as you can in the controller. Of course in this example its not really important, but i'd be tempted to assign the contents of that view to a variable in the controller, then output that variable in your view.

That way you share the same data variable, and have less dirt h4x in your view.


Messages In This Thread
passing data to "sub-templates" - by El Forum - 10-17-2007, 12:38 AM
passing data to "sub-templates" - by El Forum - 10-17-2007, 12:42 AM
passing data to "sub-templates" - by El Forum - 10-17-2007, 01:00 AM
passing data to "sub-templates" - by El Forum - 10-17-2007, 01:57 AM
passing data to "sub-templates" - by El Forum - 10-17-2007, 07:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB