Welcome Guest, Not a member yet? Register   Sign In
bad design to put html in controller?
#1

[eluser]chubbypama[/eluser]
Hi there. i'm writing some functions / methods in my controller that are going to be ajax calls. Using the data returned by the function, I ultimately need to create a table.
But I don't want to have to write javascript to do this.
I'd rather just send a string back that represents a table and all the data inside.

But is this considered bad design because I have html in the controller instead of in the view?


Messages In This Thread
bad design to put html in controller? - by El Forum - 09-19-2012, 12:49 PM
bad design to put html in controller? - by El Forum - 09-19-2012, 02:45 PM
bad design to put html in controller? - by El Forum - 09-19-2012, 03:48 PM
bad design to put html in controller? - by El Forum - 09-20-2012, 05:19 AM
bad design to put html in controller? - by El Forum - 09-20-2012, 10:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB