[TYPO3] User Condition - Corresponding function executed twice ??

Dmitry Dulepov dmitry at typo3.org
Tue Feb 13 14:09:15 CET 2007


Hi!

C.DeSousa wrote:
> Looks like I'll have to work around this, probably with include_once..
 >
 > Any other suggestions welcome !

Not magic:

function user_condition($param) {
	if (!defined('MY_UNIQUE_CONST')) {
		define('MY_UNIQUE_CONST', 1);
		// ... do your work here
	}
}

Works if you need to use it once per TS template.

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


More information about the TYPO3-english mailing list