Show album data and images in my view |
[eluser]Lykos22[/eluser]
Hi, I 'd like some help please. I have 2 tables: Code: Albums with: What I want to do is to fetch all data from these two tables , loop through them and display them in my view so it should look something like portfolio section (2nd screenshot) of this template as the ending result. This is what I have so far in my controller: Code: // fetch all album data my view: Code: <?php foreach($albums as $album): ?> I'm not sure if this is the best way to do it as the running queries (which shown in Profiler) will be increase when more albums added. Is there a better way to do this ?? NOTE: the ending result in my view should be like the 2nd screenshot you see on the link. |
Messages In This Thread |
Show album data and images in my view - by El Forum - 12-19-2013, 06:50 AM
Show album data and images in my view - by El Forum - 12-19-2013, 10:48 AM
Show album data and images in my view - by El Forum - 12-19-2013, 10:53 AM
Show album data and images in my view - by El Forum - 12-20-2013, 12:58 AM
Show album data and images in my view - by El Forum - 12-20-2013, 03:41 AM
|