Skip to content

Commit c59a6cf

Browse files
author
Andy McCormick
committed
update cp route index warning
1 parent abb0e63 commit c59a6cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/development/modules.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ This will create an `mcp.[addon_name].php` file in your add-on along with a `Con
4141

4242
Inside of the `ControlPanel/Routes` folder, you will see that the CLI has created your first control route with `ControlPanel/Routes/Index.php` and a corresponding view in you `views` folder. This page is accessible via The Add-On Manager -> [Add-On Name] or via the `/admin.php?/cp/addons/settings/[add-on-name]` URL.
4343

44+
WARN: **Create and Index route first.** When your add-on has one or more Control Panel pages associated with it, your add-on's card on the Add-On Manager page will link to the `Index` route of your add-on (`ControlPanel/Routes/Index.php`). If this route does not exist, users will be presented with a 404 page.
4445

4546
## Anatomy Of A Control Panel Route
4647
When you first add a route to your add-on a `ControlPanel/Routes` folder along with an `ControlPanel/Routes/[RouteName].php` starter file is created. The starter file will look something like this:

0 commit comments

Comments
 (0)