[eluser]Frunkie[/eluser]
I have a main template file that contains everything I want. In a small area within this template, I want to echo the view that is associated with the link that the user clicks on. This is not a problem so far however, when I have to loop the data it is not so easy anymore.
If I have this as my template/view:
Code:
table
tr
td><?php echo $myContent; ?></td
/tr
/table
You can clearly see how I would be able to echo the values of the variable. Now, suppose that I wanted to show the user something that required multiple rows of data. I would then have to use a loop. So, you see, it depends on the content that I want to display that determines what construct to use within the HTML.
Can someone please help me to figure this out? I'm sure this is just me not correctly understanding how this should be done.
Basically, I want to echo the values in the same page, NOT a different page. Everything should stay with a single view.
Thanks