[TYPO3-mvc] Which logic belongs to the controller?

Martin Kutschker masi-no at spam-typo3.org
Sat Jan 16 20:35:28 CET 2010


Jochen Rau schrieb:
> Hi Masi.
> 
> On 12.01.10 12:13, Martin Kutschker wrote:
>> The MVC pattern puts business logic (that is not intrinsic to the
>> models themselves) into the
>> controller. Now the controller base class of ExtBase is built to
>> accept parameters from an HTTP request.
> 
> IMO there is no business logic inside a controller. If it's not is not
> intrinsic to the Domain Model I would put it into a Domain Service.

I wondered because the Blog Example has the code to populate the repository with test data in the
controller.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list