Difference Between Development And Production Mode In Yii2

What is the use of development & production mode in Yii2 init?

It is just having different configurations in different enviroments. also logging and exception display is different in development and production.

If You don’t work together, You should not init Your app be Development.