[TYPO3-mvc] fluid: object.accessor and method with arguments
Peter Niederlag
typo3-list at niekom.de
Sun Mar 28 15:49:34 CEST 2010
Hello,
I assign my Object to the view. Now I would like to call method on the
object within the fluid-template and hand over a parameter to the method.
---------------------------------
$price->getTotalPriceForConsumption($units);
// $units being a property of another domain-object.
---------------------------------
The object-accessor seems to handle only properties with appropriate
getters. Wouldn't be to bad to implement an appropriate getter but there
seems to be no way to hand over a parameter to it.
Implementing a ViewHelper for this seems not the right way to me, as
this doen't belong to the view but to the model/business logic.
Any suggestions?
Thx and Greets,
Peter
--
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
More information about the TYPO3-project-typo3v4mvc
mailing list