Also ich bin nun etwas weitergekommen:

<code>

class Tx_Example_Helper_AddItemsToFlexform extends 
Tx_Extbase_MVC_Controller_ActionController {



    /**

     * @var Tx_Extbase_Configuration_ConfigurationManagerInterface

     */

    protected $configurationManager;



    function mainAction($params, $conf) {

        $objectManager = 
t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager');

        $this->configurationManager = 
$objectManager->get('Tx_Extbase_Configuration_ConfigurationManagerInterface');



        $frameworkConfiguration = 
$this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);

        t3lib_div::debug($frameworkConfiguration);



        $storagePid = $frameworkConfiguration['persistence']['storagePid'];

//        t3lib_div::debug($storagePid);

//        $this->addAllTeaser($params, $conf, $storagePid);

    }



}

</code>



So bekomme ich keine Fehlermeldung mehr und sogar eine Rückgabe der "Framework 
Configuration". Allerdings ist dann 
"$frameworkConfiguration['persistence']['storagePid']" gleich 0. Also das ist 
definitiv nicht der Wert von "plugin.tx_example.persistence.storagePid". Da 
wird anscheinend was anderes erwartet. Nur was?



-----Ursprüngliche Nachricht-----
Von: typo3-german-boun...@lists.typo3.org 
[mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von David Gurk
Gesendet: Mittwoch, 17. Oktober 2012 09:26
An: German TYPO3 Userlist
Betreff: Re: [TYPO3-german] Flexform Select itemsProcFunc mit Extbase inkl. 
ConfigurationManager, Repository



Hi Björn,



das Problem hierbei ist aber doch, das ich auch weiterhin nicht auf die 
Konstante " plugin.tx_example.persistence.storagePid" zugreifen kann, oder? 
Zudem hatte ich mich entschieden die Extension mit Extbase umzusetzen und 
wollte es dort eigentlich auch bei Extbase belassen.


_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an