[TYPO3] including files in TYPO3 v4.x
Simon Child
news0503 at srchild.com
Tue Dec 26 10:48:29 CET 2006
Has the syntax for including files changed with v 4.x? What syntax should
work now?
In 3.8. and earlier this worked:
includeLibs.myMenu = media/scripts/menuinclude.inc
but when I built a new site with v4 I found this didn't work, the file
didn't get included (and it was definitely at the above location, I had
remade directory media/scripts). Eventually I workedaround by putting it in
localconf.php
Now, upgrading another site from 3.62 to 4.0.4 I find that also
PHP_SCRIPT_EXT will no longer include a file, it ignores it with syntax that
worked for 3.62:
temp.extracontent = PHP_SCRIPT_EXT
temp.extracontent.file = media/scripts/filetoinclude.inc
The file is there, the content is the same as before, also tried a
simplified file with just one echo statement, also tried full path not just
relative path, nothing shows.
This I can't put in localconf.php (It is different script on different
pages).
I've tried putting this at the bottom of localconf.php, but it didn't help
$TYPO3_CONF_VARS["FE"]["noPHPscriptInclude"]=0;
Thanks
--
Simon Child
More information about the TYPO3-english
mailing list