[TYPO3-mvc] viewHelper for URIs can't access Enviroment

Dennis Ahrens dennis.ahrens at googlemail.com
Sat Aug 7 13:12:51 CEST 2010


Hi David,

David Bruchmann schrieb:
> Using the other solution I'd like to know how I can retrive the var 
> $_EXTKEY dynamically with some function or from some array. Inside my 
> extension surley it keeps always the same but to note it statically 
> doesn't allow using the viewHelper by other extensions.

The request object provides the method getControllerExtensionName(). You 
can use the helper in Utility/Extension to convert the result into the 
extKey.

regards
Dennis


More information about the TYPO3-project-typo3v4mvc mailing list