[TYPO3-mvc] Backend Dispatcher available!
Xavier Perseguers
typo3 at perseguers.ch
Sat Jul 25 18:25:35 CEST 2009
Hi there,
I know many of us wanted Extbase for backend modules too. We just did it
in our extension ext_mvc_samples [1] though I must admit there is still
no ExtJS involved there yet ;-)
Our backend dispatcher extends Tx_Extbase_Dispatcher with a single
method callModule() that is called from famous typo3/mod.php dispatcher
which had to be _very_ slightly modified to support Extbase.
No more conf.php file to be created, a simple module registration in
ext_tables.php and that's it:
Tx_MvcExtjsSamples_Utility_Module::registerModule(
'MvcExtjsSamples',
'BlankModule',
'index',
array(
'access' => 'user,group',
'icon' => 'EXT:mvc_extjs_samples/Resources/Public/Icons/movie_add.png',
'labels' =>
'LLL:EXT:mvc_extjs_samples/Resources/Private/Language/locallang_mod_blank.xml',
),
'user', // Make Blank module a submodule of 'user'
'blank'
);
As you see, information from conf.php is now given as parameter during
the registration. That's it!
There is still a lot to be tested because we only show a "Hello World"
message as indexAction of the BlankModule controller but it's enough for
you to make some tests and give us feedback!
Cheers
[1] http://forge.typo3.org/projects/show/extension-mvc_extjs_samples
--
Xavier Perseguers
http://xavier.perseguers.ch/en
One contribution a day keeps the fork away
More information about the TYPO3-project-typo3v4mvc
mailing list