Florian Rachor
Florian Rachor

Reputation: 1574

$this->settings empty in Extbase extension

recently I created an extension with the new Extension Builder (TYPO3 6.0, Extbase 6.0). To see if the setup.txt works I added a simple line to it:

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
}
}

Now I try to get to this in the controller by calling $this->settings['foo']. The problem is: The whole settings array is empty. Also I tried {setting.foo} in the fluid template, also empty.

So the simple question is, what am I doing wrong? I wrote on several sites that it should work just like this.

Thnx for your help.

Upvotes: 4

Views: 5482

Answers (2)

osmanz
osmanz

Reputation: 481

Include the static template of the extension. See here the tutorial.

Upvotes: 1

biesior
biesior

Reputation: 55798

Did you clear all caches?

Settings for extensions by default are stored in external files, so every change requires clearing whole cache.

Upvotes: 3

Related Questions