how to disable the gii tool in yii2, I need to host my site but I’m afraid of the gii tool being active as it can be misused.
how to disable the gii tool in yii2, I need to host my site but I’m afraid of the gii tool being active as it can be misused.
Hi @ericngumbau7, welcome to the forum.
You can disable Gii usually by setting YII_ENV_DEV
to false.
Comment out the following line in index.php
to disable Gii.
defined('YII_ENV') or define('YII_ENV', 'dev');