Skip to content

Commit 57ed50a

Browse files
author
Andy McCormick
committed
updated new add-on methodlogy section
1 parent 67b4628 commit 57ed50a

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

docs/development/addon-controllers/about.md renamed to docs/development/best-practices/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Add-on Controllers
1+
# New Best Practices
22

3-
Add-on Controllers allow add-on developers to create their add-on methods using an abstracted object layer while keeping backwards compatibility intact. It covers Extensions, Modules (Action and Tags), and the Control Panel layers. It's very simple to implement (just inherit an object), while maintaining the legacy implementation in play.
3+
With the release of ExpressionEngine 7.2 we are modernizing how add-ons are constructed. New Add-on classes allow add-on developers to create their add-on methods using an abstracted object layer while keeping backwards compatibility intact. It covers Extensions, Modules (Action and Tags), and the Control Panel layers. It's very simple to implement (just inherit an object), while maintaining the legacy implementation in play.
44

55
To implement, you simply set your add-on `mod.`, `ext.`, and/or `mcp.` files to inherit from a base object (depending on the implementation). Then create your actions, tags, extension hooks, and mcp routes in folders consistent with the supported naming convention. Tags go in the `Module/Tags` folder, Actions go in the `Module/Actions` folder, Extension hooks go in the `Extensions` folder, and Mcp routes go in the `Mcp` folder.
66

File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/installation/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464

6565
- **Developers** 💻
66-
- Added [Add-on Controllers](development/addon-controllers/about.md) classes
66+
- New [Add-on Classes](development/best-practices/about.md)
6767
- `make:addon` CLI command now generates add-on's with Add-on controller classes
6868

6969
## Version 7.1.6

docs/toc_sections/_advanced_usage_toc.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,18 @@
126126
href: development/addon-setup-php-file.md
127127
- name: Add-on Installer
128128
href: development/addon-installer.md
129-
- name: Add-on Controllers
129+
- name: Add-on Best Practices
130130
items:
131-
- name: About Controllers
132-
href: development/addon-controllers/about.md
131+
- name: About New Best Practices
132+
href: development/best-practices/about.md
133133
- name: Routing
134-
href: development/addon-controllers/routing.md
134+
href: development/best-practices/routing.md
135135
- name: Control Panel
136-
href: development/addon-controllers/cp.md
136+
href: development/best-practices/cp.md
137137
- name: Extensions
138-
href: development/addon-controllers/extensions.md
138+
href: development/best-practices/extensions.md
139139
- name: Modules
140-
href: development/addon-controllers/modules.md
140+
href: development/best-practices/modules.md
141141
- name: Plugins
142142
href: development/plugins.md
143143
- name: Modules

0 commit comments

Comments
 (0)