Dies hat nichts mit Flexform zu tun. Die ursprüngliche Lösung funktionert, weil in der angegebenen Klasse die Funktion mainAction existiert.

Extbase verwendet Konventionen, beispeilsweise:
- Definition von Controller und Action in ext_localconf.php
- class Tx_Example_Controller_AddItemsToFlexformController
- Datei AddItemsToFlexformController.php im Ordner Controller
- etc.

Nur so funtioniert dein Kontroller!

Gruss. Thomas.

Am 12.10.2012 11:47, schrieb David Gurk:
Du hast den Code also auch innerhalb von Flexform getestet? Eine Idee was es 
sein könnte hast du nicht? Könnte es an der TYPO3 Version liegen? Ich nutze 
TYPO3 4.6.12, also Extbase 1.4. Könnte es daran liegen?

Ich hatte noch folgende versucht:
<code>
protected $configurationManager;

function mainAction($params, $conf) {
     $this->configurationManager = 
t3lib_div::makeInstance('Tx_Extbase_Configuration_ConfigurationManagerInterface');
     $frameworkConfiguration = 
$this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
     $storagePid = $frameworkConfiguration['persistence']['storagePid'];
     t3lib_div::debug($storagePid);
}
</code>

Leider auch ohne Erfolg:
"Fatal error: Cannot instantiate interface 
Tx_Extbase_Configuration_ConfigurationManagerInterface"

-----Ursprüngliche Nachricht-----
Von: typo3-german-boun...@lists.typo3.org 
[mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von Thomas Nussbaumer
Gesendet: Freitag, 12. Oktober 2012 11:36
An: typo3-german@lists.typo3.org
Betreff: Re: [TYPO3-german] Flexform Select itemsProcFunc mit Extbase inkl. 
ConfigurationManager, Repository

Wie gesagt: mit deinem Code konnte ich die meine Konfiguration abrufen.
Das Problem muss daher bei der Konfiguration deiner Extension liegen.

Gruss. Thomas.


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

Antwort per Email an