Core classes
Introduction
In Hubleto you can find multiple folders that contain groups of modules that provide functionality to Ceremony. Modules follow the MVC structure with additional controllers helping you build modules more easily. You can check out how Controllers, Views and Models work with the provided links to the ADIOS framework.
Pre-requisites
File structure
This is an example file structure of a module.
ModuleName
├── Components
├── Controllers
│ └── API
├── Lang
├── Models
│ └── Eloquent
├── Views
├── Loader.php
└── Loader.tsx
File structure explanation
Components - Contains files for form, table or any other React components
Controllers - Contains controllers defining the behavior of models and defining a View
Controllers/API - Contains controllers that return a JSON response
Lang - Contains JSON files with translations
Models - Contains models that define your data structures
Models/Eloquent - Contains classes that define the relations of models
Views - Contains Twig files with HTML structures
Loader.php - A class that defines routing, permissions of models and installation of models
Loader.tsx - A class that registers React components for use in Views.
Next steps
- Check out Loaders class
- Check out Models class
- Check out Eloquent class
- Check out Controllers class
- Check out Views
- Check out Components
You can also check out the example module here.