[eluser]Unknown[/eluser]
Hi, I am totally new to CI, and faily new to OOP. In the past I often used this piece of code:
Code:
<?php
$feed = simplexml_load_file('http://twitter.com/statuses/user_timeline/NAME.xml');
sort($feed->status->id);
foreach ($feed->status as $status)
{
$name = $status->text;
echo '<p style="color: white;">'.$name.'</p>';
}
?>
I have put that into my CI view file that handles the navigation, but in Development mode it is coming up with the following NOTICE
Quote:A PHP Error was encountered
Severity: Warning
Message: sort() expects parameter 1 to be array, object given
Filename: views/01_header.php
So, what is the best way to implement this?
Please bear in mind that I am still somewhat overwhelmed by CI, so be gentle