[eluser]evolutionxbox[/eluser]
I have put the library in the 'application/libraries' folder and have loaded it.
Here is my controller code:
Code:
<?php
class Test extends Controller {
function Test()
{
parent::Controller();
}
function index()
{
$this->twitter->auth('username','pa$$word');
$data['twitter'] = $this->twitter->user_timeline();
// Build the thing
$this->load->view('test', $data);
}
}
/* End of file test.php */
/* Location: ./system/application/controllers/test.php */
All I get is a mass of php errors and warnings... what have I done wrong?
(By the way the view 'test' is a blank html page.)
The errors:
Code:
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 61: parser error : Entity 'rsaquo' not defined</p>
<p>Filename: libraries/twitter.php</p>
<p>Line Number: 460</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: <li class="first"><a href="http://twitter.com">Home &rsaquo;</a></li></p>
<p>Filename: libraries/twitter.php</p>
<p>Line Number: 460</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: ^</p>
<p>Filename: libraries/twitter.php</p>
<p>Line Number: 460</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 82: parser error : Entity 'copy' not defined</p>
<p>Filename: libraries/twitter.php</p>
<p>Line Number: 460</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: <li class="first">&copy; 2010 Twitter</li></p>
<p>Filename: libraries/twitter.php</p>
<p>Line Number: 460</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: ^</p>
<p>Filename: libraries/twitter.php</p>
<p>Line Number: 460</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Notice</p>
<p>Message: Undefined property: stdClass::$request</p>
<p>Filename: libraries/twitter.php</p>
<p>Line Number: 419</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Notice</p>
<p>Message: Undefined property: stdClass::$error</p>
<p>Filename: libraries/twitter.php</p>
<p>Line Number: 419</p>
</div>