[TYPO3] t3lib_tstemplate::splitConfArray / allWrap

Bernhard Kraft kraftb at kraftb.at
Tue Apr 4 09:24:04 CEST 2006


Andreas Zaugg wrote:


> I found the class t3lib_tstemplate with the function splitConfArray. I call
> this function with:
> t3lib_tstemplate::splitConfArray($conf,6);
> 
> Now, I received a "Fatal error", because the splitConfArray called himself :
> $this->splitConfArray($val,$splitCount);
> 
> The problem is the "$this". I don't know how I should call splitConfArray().

You have to use a instance of it.

Either:

$tstemplate = t3lib_div::makeInstance('t3lib_tstemplate');
$tstemplate->splitConfArray(...);

or use an existing instance which is available in the FE:

$GLOBALS['TSFE']->tmpl->splitConfArray(...);


greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------



More information about the TYPO3-english mailing list