Welcome Guest, Not a member yet? Register   Sign In
Advice on views for comments system of very dynamic website
#2

I would have a view with the layout for a single comment, one for a single critique etc.

Then just load that view, passing across the data for the specific item, using a loop. You could do this via an ajax request and then append the HTML returned, if it was for a "see more".

Otherwise, just have a foreach loop for the initial comments you want loaded, and load the comment view over and over, passing the item across to the view file.
Reply


Messages In This Thread
RE: Advice on views for comments system of very dynamic website - by JayAdra - 07-16-2015, 06:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB