GSTAR
(Omzy83)
March 21, 2015, 9:57pm
1
On the following page: http://www.yiiframework.com/doc-2.0/guide-concept-configurations.html
It states:
You may define YII_ENV as one of the following values:
prod: production environment. The constant YII_ENV_PROD will evaluate as true. This is the default value of YII_ENV if you do not define it.
dev: development environment. The constant YII_ENV_DEV will evaluate as true.
test: testing environment. The constant YII_ENV_TEST will evaluate as true.
What if you need more environments? For example a "stage" environment? Also would the server I develop on locally be classed as "dev" or "test" environment?
samdark
(Alexander Makarov)
March 22, 2015, 7:57pm
2
Local server is "dev". If you need additional environments and want to use same-style constants, define these in index.php.