[TYPO3-ect] lib/div theory about MVC
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Wed Jan 24 17:28:29 CET 2007
Am Wed, 24 Jan 2007 16:56:49 +0100 schrieb Fernando A.:
> Whats the best way to use the MVC
>
> More than one method per controller? In the case of controllers one
> action could be great.
>
I suggest to use one controller class per plugin with as many actions as
it needs.
> more than one method per model? I m using diffent methods in the model
> that loads the resultList.
I can't make definitive suggestions here. It depends on the size of the
project and if you predifine all queries or rather compose them be
evaluations.
In general smaller projects can go with one single class for the model.
For bigger projects I personally like 2 classes per table, one for
selections of single entries and one for list selections.
Would also be interesting to find out if propel could be used in
combination with TYPO3 and lib/div.
>
> It would be great if we get a style guide related with this pattern.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list