# Disable GII

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