[TYPO3-mvc] How to get to typoscipt ?

Tim Schoch | GSTALTIG tim.schoch at gstaltig.ch
Tue Jan 18 14:59:28 CET 2011


Hi Franz

I've got the DI up and running. Pretty easy =]

But now heres my next question: How do I call a DI method from another DI service? I'll explain my layout

Controller «ChuckNorris»
  DI TyposcriptService
  DI MailService (Singleton)

In the Controller i call $this->typoscriptService->get( 'some.path' ); // haven't testet in anything other then a controller yet
How do I access the TyposcriptService from the MailService? I can't store a reference to the Controller inside the MailService because it's a singleton.

Thanks, Tim


More information about the TYPO3-project-typo3v4mvc mailing list