[TYPO3-mvc] Models and logic
Toke Herkild
th at t3cms.dk
Mon Apr 16 10:02:35 CEST 2012
Hi all,
Having started using Extbase, I've come to the following question:
Is it possible to add non DB logic to a model ?
Often when doing a MVC project you often got operations which are not
really DB logic, but still is part of the model and not the controller,
nor the view, but you need those operations inorder for the view to do
the right thing.
EG: if you have a larger relational three, and you need a combined state
of it's completion. you'd have to parse through the different states of
the model and it's children, and return an array, containing the total
state.
ex: this->view->assign('state', $TModel->getState());
Regards
Toke Herkild
More information about the TYPO3-project-typo3v4mvc
mailing list