@@ -21,8 +21,8 @@ |
||
21 | 21 | |
22 | 22 | $this->RSSFeed->enable_cache(false); |
23 | 23 | |
24 | - $this->RSSFeed->init(); |
|
25 | - $this->RSSFeed->handle_content_type(); |
|
24 | + $this->RSSFeed->init(); |
|
25 | + $this->RSSFeed->handle_content_type(); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function indexAction() |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | |
11 | 11 | // Create services and inject into the app. |
12 | -$di = new \Anax\DI\CDIFactoryDefault(); |
|
12 | +$di = new \Anax\DI\CDIFactoryDefault(); |
|
13 | 13 | |
14 | 14 | $di->set('RssController', function() use ($di) { |
15 | 15 | $controller = new \petlid\RSSReader\RSSReaderController("http://www.historytoday.com/feed/rss.xml"); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <div class="rss-feed"> |
2 | 2 | <ul> |
3 | 3 | |
4 | - <?php foreach($items as $key => $item) { |
|
4 | + <?php foreach ($items as $key => $item) { |
|
5 | 5 | echo "<li> |
6 | 6 | <a href={$item->get_link()}> |
7 | 7 | <div class='rss-item'> |