Structure file controller

Version 3.2

The structure of a file controller for Module / Extension includes:

1. Namspace: App\Extensions|Modules\GroupName\Controllers

Ex: App\Extensions\Shipping\Controllers

2. Initialized variables:

    protected $configType = 'Extensions|Modules';
    protected $configCode = 'GroupName';
    protected $configKey  = 'ModuleName'; 

Example:

    protected $configType = 'Extensions';
    protected $configCode = 'Shipping';
    protected $configKey  = 'ShippingBasic';

3. Methods:

  • getData() //Get data module/extension
  • processData() //Process data module/extension
  • install() //Install module/extension
  • uninstall() //Remove module/extension
  • enable() //Enable module/extension
  • disable() //Disable module/extension
  • config() //No require
  • processConfig() //No require