Hello, This is a design question on MVC separation. Say I need to display a table with many rows, then a total and an average row. Should the calculation of this total/average be done in the view (in the loop) or in the controller (after getting the rows from DB)?
A related question. For an invoice: $amount = $price * $quantity; Could that be in the view or not? Basically I guess my question: what is considered view logic? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
