[TYPO3-ect] Introducing tx_lib_context

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Tue Jul 10 15:58:48 CEST 2007


Hello,

I want to introduce the class tx_lib_context as the forth elment of the
quad: $controller, $parameters, $configurations, $context.

$configurations has been simplyfied. It now only loads TS and overwrites it
with flexform values.

$context gives access to $TSFE and to the $cObj. 


One of the most interesting features is the function:

$this->controller->context->getData($key);

It's provides the identical functionality like the getText data type of
TypoScript. 

Examples: 

$siteUrl = $this->controller->context->getData('getIndpEnv:TYPO3_SITE_URL');
$id = $this->controller->context->getData('GPvar:id');
$pageTitle = $this->controller->context->getData('page : subtitle //
leveltitle : -1, slide');
$header = $this->controller->context->getData('field:header');

Regards

Elmar














More information about the TYPO3-team-extension-coordination mailing list