Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 $this->;Extbase扩展中的设置为空_Typo3_Extbase - Fatal编程技术网

Typo3 $this->;Extbase扩展中的设置为空

Typo3 $this->;Extbase扩展中的设置为空,typo3,extbase,Typo3,Extbase,最近,我用新的扩展生成器(TYPO3 6.0、Extbase 6.0)创建了一个扩展。为了查看setup.txt是否有效,我添加了一个简单的行: plugin.tx_myext { view { templateRootPath = {$plugin.tx_kremsimpressions.view.templateRootPath} partialRootPath = {$plugin.tx_kremsimpressions.view.partialRootPath}

最近,我用新的扩展生成器(TYPO3 6.0、Extbase 6.0)创建了一个扩展。为了查看setup.txt是否有效,我添加了一个简单的行:

plugin.tx_myext {
view {
    templateRootPath = {$plugin.tx_kremsimpressions.view.templateRootPath}
    partialRootPath = {$plugin.tx_kremsimpressions.view.partialRootPath}
    layoutRootPath = {$plugin.tx_kremsimpressions.view.layoutRootPath}
}
persistence {
    storagePid = {$plugin.tx_kremsimpressions.persistence.storagePid}
}
features {
    # uncomment the following line to enable the new Property Mapper.
    # rewrittenPropertyMapper = 1
}

settings {
    foo = bar
}
}
现在,我试图通过调用
$this->settings['foo']
在控制器中实现这一点。问题是:整个设置数组是空的。我还在流体模板中尝试了{setting.foo},也是空的

所以简单的问题是,我做错了什么?我在几个网站上写道,它应该像这样工作


谢谢你的帮助。

你清除了所有缓存了吗


默认情况下,扩展名的设置存储在外部文件中,因此每次更改都需要清除整个缓存。

包括扩展名的静态模板

您是否已将扩展模板包含在主模板中?安装程序不是自动加载的。好吧,这有点像你的权利:我忘了包括静态模板,它现在可以工作了。