Module
Table of contents
A module is one of the system entity types and has a specific structure. It is represented by files and subfolders in the module folder - each file has its own extension with a specific purpose.
Let's look at the following extensions and file contents:
- ini - module description (required);
- php - main code (required);
- service - service code (required);
- api - various functionality available for internal and external use, described in more detail in the API section (optional);
- data - data that is easy to change at the right time (optional);
- form - form description (optional);
- css - styles for decorating page elements related to this module (optional);
- js - JavaScript scripts for processing elements on the page that belong to this module (optional);
- boot - boot code (optional);
- migration - data migration, any necessary operations can be described, the launch is carried out from the main class manually (optional);
- settings - settings (optional);
- mysql - code for working with the MySQL database (optional, relevant for the database entity);
- library - utility library (optional).
Subfolders are optional, they can be anything, such as the following:
- js - JavaScript scripts;
- css - styles for decorating page elements;
- libraries - third-party libraries;
- data - any data (eg cache, migration, etc.);
- files - various files (images, etc.);
- others - other;
- templates - templates with tpl extension;
- * - any subfolders for subentities (crypt, symbol, utility, etc.).
Оставить заявку
Latest articles
- 01.03.26IT / Уроки PHP Уроки простыми словами. Урок 3. Все операторы PHP с примерами, с выводом работы кода на экран.
- 28.02.26IT / Уроки PHP Уроки простыми словами. Урок 2. Типы данных в PHP с примерами.
- 27.02.26IT / Уроки PHP Уроки простыми словами. Урок 1. Коротко о языке веб-программирования PHP. Основы синтаксиса.
- 26.02.26IT / Database Errors when migrating from MySQL 5.6 to 5.7 and how to fix them - database dump import failed with an error or INSERT does not work. Disabling STRICT_TRANS_TABLES strict mode or using IGNORE
- 31.01.26IT / Misc Convert office files DOC, DOCX, DOCM, RTF to DOCX, DOCM, DOC, RTF, PDF, HTML, XML, TXT formats without loss and markup changes
Popular sections
Eqsash (Tools)
Share this
Subscribe to
YouTube
Books
Am (Мессенджер)
Общение смайликами со звуком.
Не работает видео? Смотреть в VK- Download APK-файл (Android);
- Веб-версия (и PWA);
- Page проекта.