[TYPO3-ect] Introducing the controller as a register
Elmar Hinz
elmar07 at googlemail.com
Tue Aug 7 15:42:21 CEST 2007
Hi developers,
based on the vision of TS configurable actions, I introduce the controller
as a register. This is easy, because the controller is an SPL object
itself, so there is a register already build in. I use "TS notation" to
show it:
submitAction {
...
model = tx_my_model
model {
do.1 = load
do.1.1 = keyOfTotalResultCount // first parameter
go.next = ...
}
...
view = tx_my_viewWithResultBrowser
view {
do.1 = makeResultBrowser
do.1.1 = keyOfTotalResultCount // first parameter
go.next = ...
}
...
}
The regular content data is transported inside THE ARRAY of the SPL objects.
Somtimes we need to transport some additional information along the SPL
chain, for example the number of the total result count for the result
browser.
Such additional data kann be registered into the array of the controller by
use of a key. Here we use the key "keyOfTotalResultCount".
The model registers the value. The view reads the register in a later step
using the same key.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list