Welcome Guest, Not a member yet? Register   Sign In
config load loses leading directory from path


I have 2 applications both using a single system installation - ci2_system

I have custom libraries in each application both of which instantiate a CI instance.

Both then have these lines in an _init function:

$this->form_fields = $this->CI->config->item('form_fields');

One of the applications works fine. The other application fails to load the config file.

In the common file ci2_system\core\Config.php, in the load function I can examine the $file parameter being passed.

In the one that works - the whole path 'forms/form_fields' is being passed.
In the one that doesn't work - the parameter is just 'form_fields' - ie it is missing the containing folder.

Any ideas what might cause the difference?


Theme © iAndrew 2016 - Forum software by © MyBB