Welcome Guest, Not a member yet? Register   Sign In
controller vs view for loops
#1

[eluser]new_igniter[/eluser]
Hello,
I am curious if people know which of the following scenarios is faster.

1. looping through results in the controller, building the HTML, and passing the HTML to the view and just echoing the HTML

or

2. constructing an array in the controller and looping through the results in the view

Thanks!


Messages In This Thread
controller vs view for loops - by El Forum - 11-06-2008, 12:36 PM
controller vs view for loops - by El Forum - 11-06-2008, 01:26 PM
controller vs view for loops - by El Forum - 11-06-2008, 02:06 PM
controller vs view for loops - by El Forum - 11-06-2008, 02:56 PM
controller vs view for loops - by El Forum - 11-06-2008, 04:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB