[TYPO3-dev] How to get Plugin settings in ExtBase Repository in v6.2
Christian Ludwig
cl at viazenetti.de
Fri May 9 15:42:10 CEST 2014
Hi Benni,
strike, this fixed my problem. Thank you very much and thanks for
"finding" my help call here :)
Can you tell me what the difference is between
$objectManager->get();
and
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance();
What has changed there since v4.7?
Greetings to Stuttgart
Christian
-----Original Message-----
From: typo3-dev-bounces at lists.typo3.org
[mailto:typo3-dev-bounces at lists.typo3.org] On Behalf Of Benjamin Mack
Sent: Friday, May 09, 2014 2:56 PM
To: typo3-dev at lists.typo3.org
Subject: Re: [TYPO3-dev] How to get Plugin settings in ExtBase
Repository in v6.2
hey Christian,
nice to read you here :)
I suggest you use the object manager.
basically:
1) makeInstance of the objectManager
2) $objectManager->get('TYPO3\\CMS\\Extbase\\
Configuration\\ConfigurationManager');
(please note the double backslashes)
3)
$configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration
\ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS,
'myplugin', 'mysettings');
But yeah, seems like you missed the double backslashes.
All the best,
Benni.
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list