Skip to content
Snippets Groups Projects
Commit b07baf41 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

Merge branch 'feature_update-readme' into 'master'

[BUGFIX] Fix global variable name in README

See merge request !16
parents 7c01f200 5790f7d6
No related branches found
No related tags found
1 merge request!16[BUGFIX] Fix global variable name in README
......@@ -28,7 +28,7 @@ It needs be a *.php* file and has to be inside the Configuration folder **typo3c
Additionally you need to make your registration file known in your **ext_localconf.php** file:
// register mail templates
$GLOBALS['sgmail']['my_extension_key']['unique_template_name'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('my_extension_key') . '/Configuration/SgMail/MyTemplate.php';
$GLOBALS['sg_mail']['my_extension_key']['unique_template_name'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('my_extension_key') . '/Configuration/SgMail/MyTemplate.php';
sg_mail will automatically parse valid configuration files of all extensions within your TYPO3 instance.
......@@ -116,7 +116,7 @@ Example:
// get an instance of the service
/** @var MailTemplateService $mailService */
$mailService = $this->objectManager->get(MailTemplateService::class, 'confirm_mail', sg_example', ['username' => $username]);
$mailService = $this->objectManager->get(MailTemplateService::class, 'confirm_mail', 'sg_example', ['username' => $username]);
$mailService->setFromName($this->settings['fromName']);
$mailService->setFromAddress($this->settings['fromEmail']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment