Disable GII
Gii code generator can disable by adjusting config for either frontend and backend.
-
Frontend
- Go to
app/frontend/config/main-local.php - Comment or remove this line.
if (!YII_ENV_TEST) { $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', ]; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', ]; } - Go to
-
Frontend
- Go to
app/backend/config/main-local.php - Comment or remove this line.
if (!YII_ENV_TEST) { $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', ]; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', ]; } - Go to
No Comments