Welcome Guest, Not a member yet? Register   Sign In
Matchbox module separation problem when loading from applicaion folder rather than a module
#1

[eluser]Unknown[/eluser]
Hi,

Matchbox is working well. But in the case when

working in a module (say 'a_module')
and
a helper or a library (say 'helper_root') is auto loaded from the application folder instead of from 'a_module'

it cannot load a new model or view from 'a_module' in 'helper_root'

Is there any solution? please . . .

Code:
// called from a module

// in application/config/autoload.php
$autoload['libraries'] = array('layout');

// in application/libraries/layout.php ('helper_root')
return $CI->load->view('layout', $data, true); // error : "Unable to load the requested file: 'layout'"




Theme © iAndrew 2016 - Forum software by © MyBB