[TYPO3-german] Flexform Select itemsProcFunc mit Extbase inkl. ConfigurationManager, Repository

David Gurk dgurk at medienwerft.de
Fri Oct 19 14:48:50 CEST 2012


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-bounces at lists.typo3.org [mailto:typo3-german-bounces at 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.




More information about the TYPO3-german mailing list