[eluser]Ejade[/eluser]
Howdy,
I'm close to having Modular Extensions fully working. Just can't make this one thing work.
Modules::load()
Any help or clarification would be appreciated.
Code:
class Blog extends MX_Controller {
function __construct()
{
parent::__construct();
}
function index()
{
$this->load->module('welcome/welcome_controller'); //Works great
//modules::load('welcome'); GIVES ERROR
$this->welcome_controller->index();
}
}
A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI::$welcome_controller
Filename: MX/Controller.php
Line Number: 57
Fatal error: Call to a member function index() on a non-object in /Users/iMac/Sites/test2/application/modules/blog/controllers/blog.php on line 16