[TYPO3-mvc] Create HMENU submenu from extbase

Daniel Schöne daniel_schoene at web.de
Sat Oct 2 00:04:17 CEST 2010


Hi Stefan,
        
        until the current extbase dispatcher is refactored
        (http://forge.typo3.org/issues/7153) there only seems to be one
        easy
        solution to access the persistence layer from a user_func:
        
        make the protected function
        initializeConfigurationManagerAndFrameworkConfiguration() in
        extbase/Classes/Dispatcher.php public and now you can initialize
        the
        framework like this:
        
        $extbaseConfiguration = array( 
                        'persistence' => '<
        plugin.tx_uwhstaff.persistence',
                        'view' => '< plugin.tx_uwhstaff.view',
                );
                $dummyDispatcher =
        t3lib_div::makeInstance('Tx_Extbase_Dispatcher');
                $dummyDispatcher->initializeConfigurationManagerAndFrameworkConfiguration($extbaseConfiguration, '');
        
        (taken from a post in this mailing list:
        http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2010-July/005646.html)
        
        Not very clean but works like a charm ;)
        
        Cheers,
        Daniel
        
        



More information about the TYPO3-project-typo3v4mvc mailing list