CodeIgniter Forums
Simple Problem : Internal server error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Simple Problem : Internal server error (/showthread.php?tid=39859)



Simple Problem : Internal server error - El Forum - 03-23-2011

[eluser]Unknown[/eluser]
I was following the article here :
http://www.ibm.com/developerworks/web/library/wa-fbcodeigniter/?ca=drs-

to create a fb app. I created a Controller as follows:

Code:
<?php

class Sattaking extends Controller
{
    function Home()
    {
        parent::Controller();
        $this->load->plugin('facebook');
    }
    
    function index()
    {
        $this->load->view('sattakingview');
    }
}

?>

And the view as described in the article . But still i am getting an internal error in server .

Can anybody explain what is happening ?


Simple Problem : Internal server error - El Forum - 03-23-2011

[eluser]Wondering Coder[/eluser]
try this:

Code:
<?php

class Sattaking extends Controller
{
    function Sattaking()
    {
        parent::Controller();
        $this->load->plugin('facebook');
    }
    
    function index()
    {
        $this->load->view('sattakingview');
    }
}

?>

what CI version do you use?