Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - Modules::load() not working for me
#1

[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


Messages In This Thread
Modular Extensions - Modules::load() not working for me - by El Forum - 01-14-2011, 02:50 AM
Modular Extensions - Modules::load() not working for me - by El Forum - 01-14-2011, 03:03 AM
Modular Extensions - Modules::load() not working for me - by El Forum - 01-14-2011, 03:05 AM
Modular Extensions - Modules::load() not working for me - by El Forum - 01-14-2011, 03:08 AM
Modular Extensions - Modules::load() not working for me - by El Forum - 01-14-2011, 03:14 AM
Modular Extensions - Modules::load() not working for me - by El Forum - 01-14-2011, 03:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB