CI envrionment handling
This commit is contained in:
@@ -11,8 +11,8 @@ class Home extends BaseController
|
||||
|
||||
public function what_env(): string
|
||||
{
|
||||
$curr_env = $_ENV['CONFIG_NAME'];
|
||||
echo $curr_env;
|
||||
$curr_env = env('CONFIG_NAME','undefined?');
|
||||
echo env('CI_ENVIRONMENT');
|
||||
return $curr_env;
|
||||
}
|
||||
public function provision(): string
|
||||
|
||||
Reference in New Issue
Block a user