The HK2 Core module is the foundational base module for all Magento 2 HK2 extensions. It establishes standard administrative configurations, reusable backend blocks, and standardized headers for module configuration screens.
- Module Base: Required by all other HK2 extensions (AddBootstrap5, CSP, ScrollTop, etc.) to function correctly.
- Admin Consolidation: Consolidates HK2 module configurations into a single, organized tab in the Magento Admin Panel.
- βοΈ Registers a centralized "HK2 Extensions" configuration tab.
- π Sets up a main admin menu item under System for HK2.
- π Implements a root ACL resource for all HK2 modules.
- π¨ Provides a reusable
ModuleHeaderblock for consistent branding.
- Core Module Components: Base adminhtml system configurations.
- Design Patterns: Standard Magento UI configuration implementations.
HK2\Core\Block\Adminhtml\System\Config\ModuleHeader
HK2_Core::system/config/module_header.phtml
- Magento version: 2.4.4 - 2.4.9
- PHP requirements: 8.1 || 8.2 || 8.3 || 8.4
- Composer requirements:
magento/framework: ^103.0.0
composer require hk2/corebin/magento module:enable HK2_Corebin/magento setup:upgradebin/magento setup:di:compilebin/magento cache:flush
This module primarily provides configuration tabs for other modules. No specific configuration is required for the Core module itself.
This module works silently in the background. Once installed, navigating to Stores > Configuration will display a new "HK2" tab where dependent modules will render their settings.
Not Applicable
Block/
βββ Adminhtml/
β βββ System/
β βββ Config/
β βββ ModuleHeader.php
etc/
βββ adminhtml/
β βββ menu.xml
β βββ system.xml
βββ acl.xml
βββ module.xml
view/
βββ adminhtml/
βββ templates/
βββ system/
βββ config/
βββ module_header.phtml
Not Applicable
Not Applicable
- ACL usage: Defines
HK2_Core::rootbase ACL for administrative access to HK2 configurations.
Reference: docs/compatibility.md
| Platform | Supported Versions |
|---|---|
| Magento | 2.4.4 - 2.4.9 |
| PHP | 8.1, 8.2, 8.3, 8.4 |
Not Applicable
If HK2 tabs do not appear in the admin panel, ensure that the cache has been flushed and HK2_Core is enabled using bin/magento module:status.
Contributions are welcome! If you'd like to improve the installer:
- β Star this repository (Helps others find it!)
- π΄ Fork the project
- π Report bugs
- π‘ Suggest new features
- π€ Contribute improvements
Every β helps increase the visibility of the project and motivates further development.
The author provides this installation script "as is" without any warranties. Users are responsible for ensuring that running this script complies with their internal security and software requirements.
For bug reports, feature requests, and general support:
- Author: Basant Mandal
- Email: support@basantmandal.in
- Website: https://www.basantmandal.in
This project is licensed under the OSL 3.0 License. See the LICENSE.txt file for details.