From: Steffen Kamper Date: Mon, 10 Aug 2009 10:36:52 +0000 (+0000) Subject: Added feature #11651: Allow Extbase as framework for backend modules (thanks to Xavie... X-Git-Tag: TYPO3_4-3-0beta1~290 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/6c3281155761e41b7daad1116463acb64e070813 Added feature #11651: Allow Extbase as framework for backend modules (thanks to Xavier Perseguers): modified mod.php to dispatch extbase driven modules git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5770 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index e6d41e20822a..be68231ea9c3 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-08-10 Steffen Kamper + + * Added feature #11651: Allow Extbase as framework for backend modules (thanks to Xavier Perseguers): modified mod.php to dispatch extbase driven modules + 2009-08-09 Andreas Otto * Added feature #4270: displayCond for flexforms, that affects on row of element (thanks to Tolleiv Nietsch and Rupert German) diff --git a/typo3/mod.php b/typo3/mod.php index 20e77dc46e94..e44cf3c3bccc 100644 --- a/typo3/mod.php +++ b/typo3/mod.php @@ -42,13 +42,18 @@ require('template.php'); // Find module path: $temp_M = (string)t3lib_div::_GET('M'); -if ($temp_path = $TBE_MODULES['_PATHS'][$temp_M]) { - $MCONF['_'] = 'mod.php?M='.rawurlencode($temp_M); - require($temp_path.'conf.php'); - $BACK_PATH=''; - require($temp_path.'index.php'); +if (substr($temp_M, 0, 3) === 'Tx_') { + $dispatcher = t3lib_div::makeInstance('Tx_Extbase_BackendDispatcher'); + $dispatcher->callModule(substr($temp_M, 3)); } else { - die('Value "'.htmlspecialchars($temp_M).'" for "M" was not found as a module'); + if ($temp_path = $TBE_MODULES['_PATHS'][$temp_M]) { + $MCONF['_'] = 'mod.php?M=' . rawurlencode($temp_M); + require($temp_path . 'conf.php'); + $BACK_PATH = ''; + require($temp_path . 'index.php'); + } else { + die('Value "' . htmlspecialchars($temp_M) . '" for "M" was not found as a module'); + } } ?> \ No newline at end of file