[TYPO3-mvc] Settings inside a Validator
Sebastian Schreiber
me at schreibersebastian.de
Thu Feb 24 16:48:26 CET 2011
Am 24.02.2011 16:46, schrieb Bastian Waidelich:
> Georg Ringer wrote:
>
> Hi Georg,
>
>> with
>> $fo = Tx_MyExt_Service_PluginSettingsService::getSettings();
>> t3lib_div::print_array($fo);
>>
>> I get an empty array,
>
> $pluginSettingsService =
> $this->objectManager->get('Tx_MyExt_Service_PluginSettingsService');
> t3lib_div::print_array($pluginSettingsService->getSettings());
>
> If the ObjectManager is not available in your object, see [1]
>
> An alternative is to inject the ConfigurationManager directly [2]
>
> HTH,
> Bastian
>
>
> [1]
> <http://forge.typo3.org/projects/typo3v4-mvc/wiki/Dependency_Injection_%28DI%29#Creating-Prototype-Objects-through-the-Object-Manager>
>
> [2]
> http://forge.typo3.org/projects/typo3v4-mvc/wiki/ConfigurationManager_rework
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
That´s what i thought.
--
Sebastian Schreiber
(Medieninformatiker)
(TYPO3 Certified Integrator)
Sülzburgstraße 36
D-50937 Köln
T 0221 677 88 541
M 0176 431 05 790
Skype schreibersebastian.de
me at schreibersebastian.de
www.schreibersebastian.de
Steuernummer: 219 / 5302 / 2302
More information about the TYPO3-project-typo3v4mvc
mailing list