-
Notifications
You must be signed in to change notification settings - Fork 2
Classes folder
Viames Marino edited this page Feb 26, 2026
·
3 revisions
In Pair projects, classes/ is used for application-level custom classes shared across modules.
Typical locations:
APPLICATION_PATH/classes/APPLICATION_PATH/modules/*/classes/
Class loading is handled by Composer autoload (classmap/PSR-4), not by manual preload files.
In the current boilerplate, composer.json includes:
classes/modules/*/classes/
So classes placed there are discovered through Composer autoload.
- Use one class per file.
- Keep file name aligned with class name (for example
Assets.php->Assets). - Use PascalCase for class names.
- Put module-specific classes in that module's
classes/folder. - Put cross-module/shared classes in root
classes/.
Older projects may reference classes/classLoader.php, but this is not part of the current recommended setup.
When navigating form controls, use this page as a shallow index and then move laterally via each page's See also.
Core form docs:
Text and identity inputs:
Choice controls:
Date and time controls:
Numeric and progress controls:
File/media controls: