[TYPO3-dev] Fetching userspecific FE-output with a script from outside typo3
Franz Koch
typo3 at fx-graefix.de
Fri Mar 31 14:17:38 CEST 2006
Hi Martin,
>> Question is - what is the best way to get the typo3-renderd header part?
>
>
> Initialize TSFE as described. Then call a "plugin" of yours: some custom
> code (class) that may rely on the TYPO3 framework and returns all the
> header code you want.
Sorry for my stupidity, but could you give a brief example?
-external script--------
#part for initializing TSFE
#...
require_once(PATH_tslib.'class.tslib_pibase.php');
require_once('myclass.php');
$myfunc = t3lib_div::makeInstance("myclass");
$content = "";
$conf = array(); #
$myfunc->main($content,$conf);
$myfunc->getHeader();
$myfunc->print();
-----------------------
something like that? But how could I render a TS-object from inside my
class? I think therefore I would have to initiate a lot more of typo3?
Thanks for your help.
--
Kind regards,
Franz Koch
More information about the TYPO3-dev
mailing list