Jump to content

hub90

Members
  • Posts

    1
  • Joined

  • Last visited

hub90's Achievements

Starter

Starter (1/6)

0

Reputation

  1. Hello! I tried to install RSS on my website. After install module in admin page I add template from example: <?php $rss = $modules->get("MarkupLoadRSS"); $rss->load("http://mydomain.com/news/"); foreach($rss as $item) { echo "<p>"; echo "<a href='{$item->url}'>{$item->title}</a> "; echo $item->date . "<br /> "; echo $item->description; echo "</p>"; } ?> After that i make page with this template. But here is problem, when i want open page with rss i get error: Error: Call to a member function load() on a non-object (line 4 of /my_path/site/templates/rss.php). How can I resolve that?
×
×
  • Create New...