[Flow] How to retrieve settings?

Axel Wüstemann awu at qbus.de
Wed Oct 9 14:51:22 CEST 2013


Am 09.10.2013 12:37, schrieb Sebastian Kurfürst:
> Hey Axel,
>
> that definitely works like this. I guess there is some error in a
> naming convention you have done. Could you post the exact Namespace
> of your controller, and the exact part from your settings.yaml?
>
> Furthermore, you can check ./flow configuration:show --type Settings
> --path MYKEY.MyPackage to see if they are found in general by Flow.
>
Thank you Sebastian!

I have three packages, one of it is the main package: LALLF.Intranet.

In the configuration of this package I write in settings.yaml

LALLF:
   Intranet:
     oraDateFormat: 'DD.MM.YYYY HH24:MI'

In this package I have also the abstract contoller which I use as base 
class for all controllers in the other packages. In this controller I 
inject the settings-Member.

namespace LALLF\Intranet\Controller;
abstract class AbstractModuleController extends ActionController {

}

The other packages are

LALLF.Intranet.FisheryInspection and
LALLF.Intranet.PhoneDirectory

namespace LALLF\Intranet\FisheryInspection\Controller;

/* FisheryInspectionController extends AbstractModuleController! */
class VisualInspectionController extends FisheryInspectionController
{
    public function indexAction() {

        // empty array
        \TYPO3\Flow\var_dump($this->settings);
        die;
    }
}



























More information about the Flow mailing list