Welcome Guest, Not a member yet? Register   Sign In
Clean way to work with views
#3

[eluser]developer10[/eluser]
Actually he wants to know whether it would be better to do a foreach loop in his controller, then assign everything to a variable, then pass it to the view.

I can tell that there's nothing wrong in using loops in view files. We all do that, it's a common practice so keep using it.


Messages In This Thread
Clean way to work with views - by El Forum - 10-16-2010, 08:51 PM
Clean way to work with views - by El Forum - 10-17-2010, 01:41 AM
Clean way to work with views - by El Forum - 10-17-2010, 07:35 AM
Clean way to work with views - by El Forum - 10-17-2010, 07:39 AM
Clean way to work with views - by El Forum - 10-17-2010, 10:26 AM
Clean way to work with views - by El Forum - 10-18-2010, 10:46 AM
Clean way to work with views - by El Forum - 10-18-2010, 11:21 AM
Clean way to work with views - by El Forum - 10-18-2010, 05:42 PM
Clean way to work with views - by El Forum - 10-22-2010, 09:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB