config load loses leading directory from path - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: config load loses leading directory from path (/showthread.php?tid=53518) |
config load loses leading directory from path - El Forum - 07-27-2012 [eluser]mikertjones[/eluser] Hi 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: Code: $this->CI->config->load('forms/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? Thanks |