Creating a simple news aggregator..help with keeping it MVC please. |
[eluser]jk215[/eluser]
Basically Im using SimplePie as a library inside of CI. I have everything working and displaying 1 feed from one source. My question is how will I lay this out, using MVC, to display multiple seperate feeds from different sources on one page? Exactly like http://popurls.com does. I am not currently using a database/model but I assume I will be storing the site name and feed url in one once I get going. Im just having trouble visualizing how this would work for a lot of feeds without repeating myself a bunch. My code for displaying 1 feed is (controller): Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); View: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
[eluser]n0xie[/eluser]
Untested general example: Code: // controller
[eluser]jk215[/eluser]
Thanks a lot I tested it out and its got me going in the right direction! |
Welcome Guest, Not a member yet? Register Sign In |