Welcome Guest, Not a member yet? Register   Sign In
Class 'Controller' not found when creating MY_Controller using HMVC
#1

[eluser]Isern Palaus[/eluser]
Hello,

I'm trying to create a MY_Controller to extend it with my Controllers and I can't get it working.

I asked this for 1.7.2 and problem was that I wasn't using the __autoload() suggested by Phil on his blog but I assumed that this will work without his patch on 2.0. I tried and fails, I tried with adding the function __construct() on config.php and doesn't works.

I'm using the last source version of HMVC (from bitbucket) by wiredesignz.

/application/core/MY_Controller.php
Code:
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');

class MY_Controller extends Controller
{
    
    public function __construct()
    {
        parent::Controller();
    }
    
}

I also tried parent::__construct();

Error:
Quote:Fatal error: Class 'Controller' not found in /home/*****/****/trunk/src/application/core/MY_Controller.php on line 3

Thank you in advance


Messages In This Thread
Class 'Controller' not found when creating MY_Controller using HMVC - by El Forum - 02-03-2011, 07:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB