よくわかりませんが、何を取得しようとしていますか。あなたが提供したスニペットは、あなたの拡張機能の定数に設定されたstoragePidを問題なく取得します。これは、次のコードと同じですsetup.txt
。
plugin.tx_yourext {
persistence {
storagePid = {$plugin.tx_yourext.persistence.storagePid}
}
}
提供されたスニペットを使用してstoragePidを取得する際に問題が発生した場合は、を変更して、値がスコープsetup.txt
に伝播されることを確認することもできます。settings
plugin.tx_yourext {
persistence {
storagePid = {$plugin.tx_yourext.persistence.storagePid}
}
settings {
storagePid = {$plugin.tx_yourext.persistence.storagePid}
}
}
次に、コントローラーで、より簡単なコードでそれをキャッチできます。
$myStoragePid = $this->settings['storagePid'];
それがうまくいかない場合はConstants
、YourExtに適切な値を設定していないか、BEのキャッシュをクリアしていません。
ところで:多分あなたがより具体的になるならば、私はより良い答えを送ることができます。