[TYPO3-ect] $view->setModel needed?
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Sun Jun 17 14:09:57 CEST 2007
Am Sun, 17 Jun 2007 08:51:53 +0200 schrieb Max Beutel:
> Yesterday I browsed through this list and read Ries Thread about copying
> data from the Model to the View.
>
> The current solution seems to be "$view->set('model', $this->model)",
> which seems ok, but somewhat "unclean". Maybe if there is a
> setController Method there should be a setModel Method, too? Or is there
> already one and I didnt notice it? :)
Hi,
it's an option to do this $view->set('model', $this->model). Like in all
programming there are many ways to do something. I would say this way is
not in the full spirit of the SPL objects. Compare the teaching extensions
apples, bananas, cherries, efaq. I.e.
http://typo3.org/extensions/repository/view/apples/0.0.9/info/controllers%252Fclass.tx_apples_controllers_example.php/
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list