Actually it is possible to use controllers in subfolders if the extension uses namespaces.
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'TYPOVISION.' . $_EXTKEY,
'pi1', array( 'Backend\Standard' => 'index'),
// non-cacheable actions
array( 'Backend\Standard' => 'index' )
);
Using the old Syntax (Tx_Foo_Bar_Baz) it does not work and we will not change this!
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'TYPOVISION.' . $_EXTKEY,
'pi1',
array( 'Backend_Standard' => 'index' ),
// non-cacheable actions
array( 'Backend_Standard' => 'index' )
);
So, switch to Namespaces if you are in urgent need of this feature!
By this way, the same is true for Models and Repositories in their dedicated directories. You only need to adapt the namespace and can structure your files after logical grouping.
No comments yet. Be the first to comment on this!