[TYPO3-german] BEgetRootLine Problem
Ralf Hettinger
ng at ralfhettinger.de
Sat Jun 3 13:20:17 CEST 2006
Tach,
t3lib_BEfunc::BEgetRootLine ($uid,$clause=')
gibt ein Array zurück - siehe z.B.
http://typo3.org/fileadmin/typo3api-3.8.0/
mit
t3lib_div::debug($rootline[0]);
siehst Du, was Du brauchst. Vermutlich:
return $rootline[0]['uid'];
Gruß Ralf
robert moszczynski schrieb:
> Moin,
>
> weiss jemand warum der folgende Code nicht geht?
>
> <?php
> require_once("t3lib/class.t3lib_befunc.php");
>
> function user_gibUID($content,$conf) {
> $uid = ''.$conf['actualUID'].'';
>
> $rootline = array();
> $rootline[] = t3lib_BEfunc::BEgetRootLine($uid);
>
> return $rootline[0];
> }
> ?>
>
> Es wird ein Text "Array" zurückgegeben.
More information about the TYPO3-german
mailing list