Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to a member function insert() on a non-object in ?
#18

[eluser]Unknown[/eluser]
None of what appears in these comments has worked for me. I'm just trying to follow the basic tutorial video and keep getting

Code:
Fatal error: Class 'Controller' not found in /home2/something/public_html/something-else/system/application/controllers/invest.php on line 3


Or
Code:
Class 'CI_Controller'
, same problem.

Here's my code:

Code:
<?

class Invest extends CI_Controller {


        function __construct()
        {
             parent::__construct();
             // Your own constructor code
        }



    function Invest()
    {
        parent::Controller();

    }



    function index()
    {

        //$this->load->view('investor_browse_page');
        $this->Page_Display();
    }
    


    function Page_Display()
    {
        $data[1] = 'poop';
        $data[2] = 'pee';
        $data[3] = 'flatus';

        $this->load->view('investor_browse_page', $data);

    }


} //end class

?>



You can see the detritus of many attempts at making this work.


Messages In This Thread
Fatal error: Call to a member function insert() on a non-object in ? - by El Forum - 02-17-2011, 01:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB