Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules::run() loading views #41

Open
weblogics opened this issue Aug 3, 2012 · 1 comment
Open

Modules::run() loading views #41

weblogics opened this issue Aug 3, 2012 · 1 comment

Comments

@weblogics
Copy link

When using the Modules::run() for dynamically loading views such as:

$this->load->module('module_name');
$this->module_name->index();

or

echo modules::run($module->module);

The problem is that you are using the:

$this->_module = $this->_ci->router->fetch_module();

The problem is this is NULL when using the run() or load->module() methods.

Is there a fix for this.

@hicode
Copy link

hicode commented Oct 26, 2012

You can try to change the module.php the run method

The following example is I have to use the fix solution:

1.Open the third_party/MX/Modules.php
2.Near 75 lines to find

$buffer = ob_get_clean();

3.Increase in its following:

if($output === NULL && $buffer === '')
{ 
     $output = CI::$APP->output->get_output(); 
}

At this time, it should be able to work properly...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants