Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC version 5.2

[eluser]wiredesignz[/eluser]
@Madmartigan1, Also posted in the wiki article thread.
Freakauth_light and Modular Extensions

[eluser]Enshteyn[/eluser]
Could not load config file from the library module in version 5.2.09

Previously used

Code:
$this->ci->load->module('auth')->load->config('auth', TRUE);

Now try

Code:
$this->ci->load->module($this->module)->load->config('auth', TRUE);
and
$this->ci->load->config('auth', TRUE);

Maybe someone knows how to solve the problem?

[eluser]wiredesignz[/eluser]
Hi Enshteyn, try using Modules::load()
Code:
$auth = Modules::load('auth');
$auth->load->config('auth',TRUE);

[eluser]Enshteyn[/eluser]
Thank you very much Smile

[eluser]Skinnpenal[/eluser]
I'm trying to install this, and I've put the files into my app's lib. folder, but I get this error:

Code:
Fatal error: Class 'CI' not found in /www/framework/application/libraries/Controller.php on line 7

Which reffers to this:

Code:
/* create the application object */
CI::instance();

What is this? I've never seen it before. Is it some new version of $ci =& get_instance() ?

[eluser]wiredesignz[/eluser]
Never had that error myself, Maybe move the code and its comment to line 77 after the CI class definition.

CI::instance() creates a singleton application object for your module controllers.

[eluser]bEz[/eluser]
[quote author="Skinnpenal" date="1242507584"]I'm trying to install this, and I've put the files into my app's lib. folder, but I get this error:

Code:
Fatal error: Class 'CI' not found in /www/framework/application/libraries/Controller.php on line 7

Which reffers to this:

Code:
/* create the application object */
CI::instance();

What is this? I've never seen it before. Is it some new version of $ci =& get_instance() ?[/quote]
I reported this issue about a month ago myself.

[eluser]wiredesignz[/eluser]
[quote author="wiredesignz" date="1242536010"]Never had that error myself, Maybe move the code and its comment to line 77 after the CI class definition.

CI::instance() creates a singleton application object for your module controllers.[/quote]

@bez, Try the fix I posted.

[eluser]Skinnpenal[/eluser]
[quote author="wiredesignz" date="1242536010"]Never had that error myself, Maybe move the code and its comment to line 77 after the CI class definition.

CI::instance() creates a singleton application object for your module controllers.[/quote]

Yup, that fixes the issue. Thanks! Smile

[eluser]Enshteyn[/eluser]
File: Controller.php. Line 234 - 239

Code:
Modules::load_file($model, $path);
$model = ucfirst($model);
CI::$APP->$_alias = new $model();
$this->_ci_models[$_alias] = $_alias;
$this->$_alias->_assign_libraries();
return $this->$_alias;
should be replaced by:
Code:
Modules::load_file($model, $path);
$model = ucfirst($model);
CI::$APP->$_alias = new $model();
$this->_ci_models[$_alias] = $_alias;
CI::$APP->$_alias->_assign_libraries();
return $this->$_alias;

because they do not load models in the library module




Theme © iAndrew 2016 - Forum software by © MyBB