[TYPO3-english] php script include doesn't work
bob nat
3dcom at neoprod.net
Mon Nov 9 13:12:26 CET 2015
Hi,
I'm trying to include a php script in my template typo3 6.2..
Several try with USE and USE-INT function as this example
---------------------------
page = PAGE
page.10 = USER_INT
page.10 {
userFunc = user_printTime
# Include the PHP file with our custom code
includeLibs = fileadmin/example_time.php
}
The file fileadmin/example_time.php might amongst other things contain:
function user_printTime($content, $conf) {
return '<p style="color: red;">Dynamic time: ' . date('H:i:s') . '</p><br />';
}
----------------------------------------------
..but nothing works. The content of the php script is written on the screen but the code doesn't work.
I really have to fix this pb. Thank yo for advices
More information about the TYPO3-english
mailing list