Typo3 $this->;Extbase扩展中的设置为空
最近,我用新的扩展生成器(TYPO3 6.0、Extbase 6.0)创建了一个扩展。为了查看setup.txt是否有效,我添加了一个简单的行: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}
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},也是空的
所以简单的问题是,我做错了什么?我在几个网站上写道,它应该像这样工作
谢谢你的帮助。你清除了所有缓存了吗
默认情况下,扩展名的设置存储在外部文件中,因此每次更改都需要清除整个缓存。包括扩展名的静态模板 您是否已将扩展模板包含在主模板中?安装程序不是自动加载的。好吧,这有点像你的权利:我忘了包括静态模板,它现在可以工作了。