PageBuilder project structure
mainThe PageBuilder plugin follows a structured architecture separating controllers, services, and views. Understanding this layout is essential for locating logic and templates:
Controllers/Panel/: Contains backend controllers likePageBuilderController.php.Services/: Contains core business logic, includingPageBuilderService.php(page construction),ModulePreviewService.php(module previews), andDesignService.php(design services).Routes/panel.php: Defines the backend routes for the plugin.config.json: The main configuration file for the plugin.Public/: Contains static assets (CSS, JS, images).Views/design/: Contains the designer interface templates and scripts.Views/front/: Contains the frontend templates for homepages, pages, and individual modules.
PageBuilder/
├── Controllers/
│ └── Panel/
│ └── PageBuilderController.php
├── Services/
│ ├── PageBuilderService.php
│ ├── ModulePreviewService.php
│ └── DesignService.php
├── Views/
├── Public/
│ ├── css/
│ ├── js/
│ └── images/
├── Routes/
│ └── panel.php
├── config.json
└── README.md