CI4 Multiple app and env file - 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: CI4 Multiple app and env file (/showthread.php?tid=74294) |
CI4 Multiple app and env file - carmine.milieni - 09-06-2019 Hello, i'm porting my ci3 app to ci4. My app is multiple app, on ci4 i have make two app directory (config/controllers...) and two public app (index.php, .htaccess), i have modified index.php for load correctly Config/Paths, in this image my folder structure: My problem is configuration files for different environment, in ci3 i have make two directory for env (production/development) in ci4 i have env file but in project root, I can moving env file in app directory from project root ? Thank for attention and sorry for my bad english RE: CI4 Multiple app and env file - carmine.milieni - 09-06-2019 Is correctly if I add before class initialization : PHP Code: if (file_exists(APPPATH . 'Config/' . ENVIRONMENT . '/namefile.php')) ? thanks... |