From d33f43073f284add77d41ef270ff6c125c0629bb Mon Sep 17 00:00:00 2001 From: Thomas Kuschel Date: Fri, 6 Oct 2023 05:12:27 +0200 Subject: [PATCH] ADD details in documentation for DepotComponent --- README.md | 11 +++++++++++ admin/src/Extension/DepotComponent.php | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 339293f..31ce30c 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,17 @@ Add the following basic six files: ##### 1. DepotComponent.php This file contains class for the extension. The class extends MVCComponent. +Compare this version with the original at [Tech Fry Tutorium](https://www.techfry.com/joomla/adding-basic-files-for-component). +```php +namespace KW4NZ\Component\Depot\Administrator\Extension; + +use Joomla\CMS\Extension\MVCComponent; + +class DepotComponent extends MVCComponent +{ + +} +``` ##### 2. provider.php This is a special file that tells Joomla how to initialize the component - which diff --git a/admin/src/Extension/DepotComponent.php b/admin/src/Extension/DepotComponent.php index 2a25aec..59067a5 100644 --- a/admin/src/Extension/DepotComponent.php +++ b/admin/src/Extension/DepotComponent.php @@ -14,5 +14,4 @@ use Joomla\CMS\Extension\MVCComponent; class DepotComponent extends MVCComponent { - -} +} \ No newline at end of file