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?