Welcome Guest, Not a member yet? Register   Sign In
Loops in views
#1

[eluser]ccachor[/eluser]
I'm wondering where I would do my if statements to check whether more photos exist to place as thumbnails. I was thinking in the controller but it's I'm starting to think it would make more sense in the view. What have you all done?
#2

[eluser]tonanbarbarian[/eluser]
I do not have problems putting simple condition or loop statements in the view.
simple data formatting is ok as well.
However I try not to do things like load libraries, model, helpers etc in the view.
I will make calls to helper functions but generally I will load the helper in the controller, after all you should know what helpers will be needed by which views.




Theme © iAndrew 2016 - Forum software by © MyBB