diff --git a/Documentation/Autoloading/LegacyMode.md b/Documentation/Autoloading/LegacyMode.md new file mode 100644 index 0000000..c5d6f65 --- /dev/null +++ b/Documentation/Autoloading/LegacyMode.md @@ -0,0 +1,16 @@ +* Guideline for autoloading in Typo3 Legacy Mode + +Following steps will use to autoload class in typo3 Legacy mode. + +* Step 1: Put any PHP Library or SDK in Extension's Classes directory +* Step 2: In `ext_emconf.php` add following code in key `autoload` +* ``'autoload' => [ + 'classmap' => ['Classes/'] + ]`` +* Step 3: Do Typo3 dumpautoload and cache Clear + +*** +* Following Reference are for autoloading +* Ref 1: https://www.youtube.com/watch?v=p_Ll2mKkz70&t=634s +* Ref 2: https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ApiOverview/Autoloading/Index.html +* Ref 3 : https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ExtensionArchitecture/FileStructure/ExtEmconf.html#extension-declaration diff --git a/README.md b/README.md index 5889604..dc6cf08 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,5 @@ 1. `ddev start` 2. `touch .Build/public/FIRST_INSTALL` + +* [Documentation of Legacy mode Autoloading](Documentation/Autoloading/LegacyMode.md)