在Typo3 6.2中包含php脚本
如何在TYPO3 6.2中呈现PHP脚本的结果 我试过了在Typo3 6.2中包含php脚本,typo3,Typo3,如何在TYPO3 6.2中呈现PHP脚本的结果 我试过了 page.10 { subparts.content = USER_INT subparts.content { includeLibs = fileadmin/script.php userFunc = user_printFunction } } 对于其他代码,函数在新模板中工作,但在页面中不工作 例如,我想在php脚本下面插入文本和 我能做什么?includeLibs语句必须在任何其他打字脚本之外: i
page.10 {
subparts.content = USER_INT
subparts.content {
includeLibs = fileadmin/script.php
userFunc = user_printFunction
}
}
对于其他代码,函数在新模板中工作,但在页面中不工作
例如,我想在php脚本下面插入文本和
我能做什么?includeLibs语句必须在任何其他打字脚本之外:
includeLibs = fileadmin/script.php
page.10 {
subparts.content = USER_INT
subparts.content {
userFunc = user_printFunction
}
}
另请参见。要回答您的问题,您忘记提供呼叫功能,请参见:
userFunc = user_printFunction->yourAwesomeFunction
请注意,includeLibs不会在Typo3 7及以上版本的任何其他打字脚本之外工作。另一方面,这很好:
page {
12 = USER_INT
12.userFunc = Deividas\FeAccounts->get
12.includeLibs = fileadmin/FeAccounts.php
}
在USER或USER_INT对象中使用includeLibs。
我将它用于一个小项目和一项小任务。我建议您为您的项目创建一个全局扩展。我想这将是一个更干净的方法来创建网站类型3