![]() |
Dependable systempath - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: Dependable systempath (/showthread.php?tid=87930) |
Dependable systempath - massimiliano1.mancini - 06-22-2023 I have two develop machines and one on line server. On the develop machines I use composer while on the on line server I use the tarball codeigniter installation. I'm asking if there is an elegant way to modify PHP Code: class Paths based on .env file PHP Code: CI_ENVIRONMENT = development for example, is possible to set $systemDirectory in the same .env file? or, alternatevly, on the files in Config/Boot ? Thank you RE: Dependable systempath - kenjis - 06-29-2023 The Path file is loaded first of all. So you cannot use .env file. It is not loaded yet. I don't think the problem will arise if you use source code with vendor/ in the production environment. |