[TYPO3-core] RFC #11652: Modern integration of module into backend using Extbase
Steffen Kamper
info at sk-typo3.de
Mon Aug 10 13:24:38 CEST 2009
Hi,
Oliver Hader schrieb:
> Hi Steffen,
>
> Steffen Kamper schrieb:
>> FYI: committed corrected version to trunk, rev 5771
>
> +387» » » //·Check·for·own·way·of·configuring·module
> +388» »
> if·(is_array($GLOBALS['TBE_EXTBASE_MODULES'][$name]['configureModuleFunction']))·{
> +389» » »
> $obj·=·$GLOBALS['TBE_EXTBASE_MODULES'][$name]['configureModuleFunction'];
> +390» » » if·(is_callable($obj))·{
> +391» » » » $MCONF·=·array();
> +392» » » » $MLANG·=·array();
> +393» » » » return·call_user_func($obj,·$name,·$fullpath,·$MCONF,·$MLANG);
> +394» » » }
> +395» » }
>
> What is the "own way of configuring module"? Wouldn't it be better to
> use one "standard" way (since ExtBase shall define a new standard)?
>
> Besides that I'm missing documentation on how to create backend modules
> with ExtBase with a small working example. Is there something in the
> BlogExample?
>
> olly
it's on the way, here is a short example of register a BE module with
extbase:
Tx_Extbase_Utility_Extension::registerModule(
$_EXTKEY,
array(
'BlankModule' => 'index,other'
),
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'
);
see mvc-list for more details
vg Steffen
More information about the TYPO3-team-core
mailing list