![]() |
Issues with ROOTPATH - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Issues with ROOTPATH (/showthread.php?tid=71668) |
Issues with ROOTPATH - scalla - 09-11-2018 while testing on localhost, i observed an issue with the ROOTPATH. if the entire codeigniter file is move to an extra outer folder, i.e Framework -> Codeigniter -> the rest of the igniter files. the entire path would not resolve properly till you go change the path in path.php, index.php to fit in properly. yet this does not provide a proper solution, cus if you choose to do something like " PHP Code: 'InternalApi' => ROOTPATH.'Matrix/InternalApi' in the autoload psr4, it would not also resolve it till you add Framework befor the matrix. the current code for the ROOTPATH is PHP Code: define('ROOTPATH', substr_replace(FCPATH, '', $pos, strlen($public.DIRECTORY_SEPARATOR))); my work around this is PHP Code: define('ROOTPATH', realpath(__DIR__.'/../').DIRECTORY_SEPARATOR); unfortunately am unable to submit a PR at the moment for this |