[eluser]Shiju S S[/eluser]
I have extended CI_Loader:
Code:
class Loader extends CI_Loader
{
var $_matchbox;
function __construct()
{
parent::__construct();
// {{{ Matchbox
$this->_matchbox = &load;_class('Matchbox');
// }}}
$this->_ci_is_php5 = (floor(phpversion()) >= 5) ? TRUE : FALSE;
$this->_ci_view_path = APPPATH.'views/';
$this->_ci_ob_level = ob_get_level();
log_message('debug', "Loader Class Initialized");
}
Used it in another library file Site_Manager like this:
Code:
$this->load->library('loader');
// Load site wide modules
$this->loader->module_library('status','status');
I am getting an error
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: Home::$loader
Filename: libraries/Site_Controller.php
Line Number: 59
Fatal error: Call to a member function module_library() on a non-object in D:\xampp\htdocs\backendpro\system\application\libraries\Site_Controller.php on line 59
My Module files are located in
Quote:htdocs/backendpro/
Modules
System
application
controller
library
Site_Controller.php
Loader.php
assets
Please help.