Plugin Structure

  • membership-by-supsystic `Basic directory of the plugin.`
    • app `A start file and general files are located here.`
      • lang `Translation files.`
    • src
      • Membership `Directory of plugin modules, each module is responsible for its part of the plugin. We use MVC patter in the modules.`
        • Users `Directory of the module.`
          • assets `Styles, scripts, images related to the module are located here.`
          • Models `Files which coordinate receiving/storage necessary data from the database are located here.`
          • views `Template files are responsible for displaying html layout and received data. `
          • Controller.php `Processes requests to the module, coordinates receiving necessary data from the module and displays templates from view directory`
          • Module.php `General file of module control. Used for registration and processing of various events.`
    • vendor `Directory of the plugin’s system libraries.`
Latest Articles