[Typo3-dev] T3 function for parsing ext_typoscript_setup.txt into array?
René Fritz
r.fritz at colorcube.de
Wed Jul 9 12:01:27 CEST 2003
Hi Robert
> I'm desperately looking for the function which parses a textfile or string
> into
> an TypoScript object / array.
// get config file and parse it into $config
$fd = fopen ($path.$setupFile, "r");
$infotext = fread ($fd, filesize ($path.$setupFile));
fclose ($fd);
$infoParser = new t3lib_TSparser;
$infoParser->parse($infotext);
$config = $infoParser->setup;
old code but should still work
René
--
COLORCUBE
digital media lab
www.colorcube.de
More information about the TYPO3-dev
mailing list