[TYPO3-ect] Controller Configuration
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Thu Mar 23 14:55:12 CET 2006
steve ryan schrieb:
> Has anyone thought about a generic controller driven by TS
> configuration? Great for extending the kickstarter to include "Add New
> Process".
Yes, I have indeed thought of this since long. It is more or less the
TypoScript implementation of the Struts controller, which is done in XML.
You combine the 3 settings: Model, View, Next.
Validation is done by PHP mixed into typoscript.
Problems:
* Next works only as a linear Chain.
* Validation is limited.
* Typoscript should be the place to configure not to program.
* Normal typoscripters don't program PHP.
Alternative 1: Model, View, Subcontroller
Subcontroller would be a PHP script that does more complex
validations, and can branch for the next view.
Alternative 2: View, Subcontroller
The TypoScripter only needs to select the view they like. The
subcontroller finds the model and does the rest.
Variant:
The PHP Programmer uses TypoScript to design parts of the extension.
This TypoScript is not visible and editable in the typical Typoscript
configuration.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list