Set Environment via Config\App |
Hello guys,
I was thinking of a simple way to change between supported framework environments, so i made this. Step 1: we need to configure environment via \Config\App at App/Config/App.php file: PHP Code: <?php namespace Config; Step 2: we should add default supported environments list in system\CodeIgniter.php file: PHP Code: <?php namespace CodeIgniter; Step 3: we have to edit some codes to make it work as expected, search for detectEnvironment() function in system\CodeIgniter.php file: PHP Code: protected function detectEnvironment() Thats all for me, I'm new in php world so I don't know what are the consequences. |
Messages In This Thread |
Set Environment via Config\App - by Mostafa Khudair - 12-24-2019, 02:16 PM
RE: Set Environment via Config\App - by InsiteFX - 12-26-2019, 10:02 AM
|