[TYPO3-ect] Draft: Specification of Dispatch and Action Controller Framework
    Elmar Hinz 
    elmar.DOT.hinz at team.MINUS.red.DOT.net
       
    Sat Mar 25 12:50:19 CET 2006
    
    
  
Elmar Hinz schrieb:
> 
> class tx_office_controllers_article extends tx_lib_controller{
> 
>   private $controllerDirectory = 'controllers'; // inherited default
> 
>   private $subControllers = array(
>    'editArticle',
>    'searchArticle'
>   );
> 
> }
> 
> $TYPO3_CONF_VARS['CONTROLLERS']['tx_office_controllers_article'][]='tx_moreOffice_controllers_article';
> 
> 
Maybe it would be cleaner to register intra and extra extension
controllers in the same manner.
$TYPO3_CONF_VARS['CONTROLLERS']['tx_office_controllers_article'][]='tx_office_controllers_editArticle';
$TYPO3_CONF_VARS['CONTROLLERS']['tx_office_controllers_article'][]='tx_office_controllers_searchArticle';
$TYPO3_CONF_VARS['CONTROLLERS']['tx_office_controllers_article'][]='tx_moreOffice_controllers_article';
$TYPO3_CONF_VARS['CONTROLLERS']['tx_moreOffice_controllers_article'][]='tx_moreOffice_controllers_articlePublisher';
advantages:
* full overview of the controllers hierarchy i.e. with the  BE tools.
* unique style of registration
Regisration could by simplified with a little assistent.
tx_div::registerController($parent, $child);
(If tx_div is preload/autoload already in ext_tables.php.)
Regards
Elmar
    
    
More information about the TYPO3-team-extension-coordination
mailing list