What Is a Cartridge?
A cartridge is a mechanism for packaging and deploying program code and data. Use cartridges to extend business functionality or integrate with external systems. A cartridge can deliver generic or application-specific functionality.
- Generic cartridges: contain reusable business functionality that can be deployed to many sites.
- Application-specific cartridges: designed to provide functionality that is specific to the needs of a particular ecommerce site.
Add a cartridge for functionality that is:
- Generic: you want to reuse functionality among multiple projects.
- Large and self-contained: you want the functionality self-contained for easier maintenance.
Note: New functionality doesn't always require a new cartridge.
Cartridges can contain:
- Controllers
- Templates
- Scripts
- Form definitions
- Static content (images, CSS files, and client-side JavaScript files)
- WSDL files