[TYPO3-english] simply question about MTB/1

tom typostudy at gmail.com
Wed Nov 7 05:31:16 CET 2012


Hi,

The info below is from Modern Template Building, Part 1 (MTB/1)
...

<?php
class user_functions {
	/**	 * Multiplies the current page ID with $conf["factor"]	
*/	function multiplyTest($content,$conf)	{		$currentPageUid =
$GLOBALS['TSFE']->id;		$factor = intval($conf['factor']);				return
$currentPageUid * $factor;	}}?>

...

My question about this code is :

what is $GLOBALS['TSFE'] and $conf['factor'])? And where can I get
defination of them? Thanks.



Tom


More information about the TYPO3-english mailing list