[Flow] How to retrieve settings?
Axel Wüstemann
awu at qbus.de
Wed Oct 9 11:59:25 CEST 2013
Hallo,
I would like to have some application specific settings. So in my
applications main package's settings.yaml I set some values according to
http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/Configuration.html#accessing-settings
MYKEY:
MyPackage:
settingKey: 'settingValue'
MyAbstractController
/**
* The Flow settings
* @var array
*/
protected $settings;
/**
* Injects the Flow settings
*
* @param array $settings The settings
* @return void
*/
public function injectSettings(array $settings) {
$this->settings = $settings;
}
...
MyConcreteController extends MyAbstractController
public function indexAction() {
{
\TYPO3\Flow\var_dump($this->settings);
die;
}
...
I get:
Flow Variable Dump
array(empty)
Regards
Axel
More information about the Flow
mailing list