/
Step 3: Panel structure
Step 3: Panel structure
Introduction
A panel consist of three distinct files, each containing a class:
- Controller
- Views
- Actions
Panels are stored inside innomatic/domain folder, each one inside its own sub-folder called “<panelname>-panel”.
e.g. for a panel called Basic you will have:
domain/basic-panel/BasicPanelActions.php domain/basic-panel/BasicPanelController.php domain/basic-panel/BasicPanelViews.php
Panel definition
Panels are declared in application.xml with the rootpanel and domainpanel components, e.g.:
<domainpanel name="basicapp” catalog="example-basic-app::misc" category="examples" />
In the example, “category” stands for the panel group.
Next: Step 4: Panel controller
, multiple selections available,