[TYPO3-v4] Postponing 4.5 RC1

Steffen Kamper info at sk-typo3.de
Tue Jan 18 18:38:29 CET 2011


Hi,

Am 18.01.2011 18:08, schrieb Steffen Kamper:

>
> the instance of template is bad but needed, as some inner operations use
> GLOBALS['TBE_TEMPLATE']. i tried to avoid that but's not possible.
> It doesn't harm to require this file anyways.
>

i researched again why i needed template. For extension configuration an 
instance of t3lib_tsparser_ext is done which needs an instance of 
template because of silly formWidth() call. maybe i can change that in 
constructor as it's not needed for quite operations

public function __construct($instanceTemplate = TRUE) {
		if ($instanceTemplate) {
			$this->template = t3lib_div::makeInstance('template');
		}

so you can instance it without template.php

vg Steffen



More information about the TYPO3-project-v4 mailing list