問題: ユーザー関数のコンテンツがプレーン テキストとしてレンダリングされます。
これは私のclass.aktionen.php
です:
<?
class user_aktionen {
private $conf;
function main($content,$conf) {
$this->conf = $conf;
return 'test';
}
}
?>
これは私のTSです:
includeLibs.user_aktionen = fileadmin/templates/class.aktionen.php
lib.offers = USER_INT
lib.offers {
userFunc = user_aktionen->main
}
lib.offers
私はTemplaVoila で要素にマッピングしましたdiv
。私のHTMLドキュメントのレンダリングされた出力は
<?
class user_aktionen {
private $conf;
function main($content,$conf) {
$this->conf = $conf;
return 'test';
}
}
?><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="de-DE" lang="de-DE" xmlns="http://www.w3.org/1999/xhtml">
Templavoila 1.8.0 と Typo3 4.7.10 を使用しています。
私が間違っていることは何ですか?
許可の問題ですか?代わりに Templavoila 1.7 を使用する必要がありますか? 私は試した
$TYPO3_CONF_VARS['FE']['debug'] = '1';
$TYPO3_CONF_VARS['SYS']['devIPmask'] = '127.0.0.1'; // your real IP here
$TYPO3_CONF_VARS['SYS']['displayErrors'] = '2';
およびphp_flag display_errors on
.htaccess にありますが、エラーはまったく表示されません。