-
Notifications
You must be signed in to change notification settings - Fork 1
Modules
Jared King edited this page Jun 19, 2013
·
1 revision
Infuse employs a modular architecture for organizing code. Each module should provide a specific functionality and be self-contained.
Modules contain:
- configuration
- a controller
- models
- views
- supporting libraries
Infuse ships with many default modules. Modules are denoted by a folder, which must be lowercase, in the modules directory. Adding or deleting modules is as simple as moving the module folder into or out of the modules directory.
Examples of modules:
- users
- groups
- projects
- lists
Typically a module supports a specific model or provides a library to the framework. Modules may be loaded from anywhere by calling \infuse\Modules::load('name')
.