Welcome Guest, Not a member yet? Register   Sign In
MY_Controller problems.
#6

[eluser]danmontgomery[/eluser]
It needs to be parent::Controller(), not parent::__construct(). __construct doesn't exist in CI core classes, since it's a PHP 5 method... Not sure if that will solve the class not being loaded, but it will be an issue nonetheless.

Code:
<?php if (!defined('BASEPATH')) exit('No direct access allowed.');

class MY_Controller extends Controller
{
    // This should work
    function __construct()
    {
        parent::Controller();
    }
}


Messages In This Thread
MY_Controller problems. - by El Forum - 03-16-2010, 06:36 AM
MY_Controller problems. - by El Forum - 03-16-2010, 07:25 AM
MY_Controller problems. - by El Forum - 03-16-2010, 07:30 AM
MY_Controller problems. - by El Forum - 03-16-2010, 07:39 AM
MY_Controller problems. - by El Forum - 03-16-2010, 08:02 AM
MY_Controller problems. - by El Forum - 03-16-2010, 08:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB