Welcome Guest, Not a member yet? Register   Sign In
Twitter Library - How does it work?
#3

[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>]:           &lt;li class=&quot;first&quot;&gt;&lt;a href=&quot;http://twitter.com&quot;&gt;Home &amp;rsaquo;&lt;/a&gt;&lt;/li&gt;</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>]:           &lt;li class=&quot;first&quot;&gt;&amp;copy; 2010 Twitter&lt;/li&gt;</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>


Messages In This Thread
Twitter Library - How does it work? - by El Forum - 03-29-2010, 12:35 PM
Twitter Library - How does it work? - by El Forum - 03-29-2010, 01:41 PM
Twitter Library - How does it work? - by El Forum - 03-30-2010, 11:59 AM
Twitter Library - How does it work? - by El Forum - 03-30-2010, 01:44 PM
Twitter Library - How does it work? - by El Forum - 03-30-2010, 04:39 PM
Twitter Library - How does it work? - by El Forum - 03-30-2010, 04:42 PM
Twitter Library - How does it work? - by El Forum - 03-30-2010, 05:19 PM
Twitter Library - How does it work? - by El Forum - 03-31-2010, 07:34 AM
Twitter Library - How does it work? - by El Forum - 03-31-2010, 05:50 PM
Twitter Library - How does it work? - by El Forum - 03-31-2010, 06:02 PM
Twitter Library - How does it work? - by El Forum - 03-31-2010, 06:27 PM
Twitter Library - How does it work? - by El Forum - 04-09-2010, 01:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB