Mick wrote:
I want to write a function that takes a date in the future and returns how many days are left until that date. However, I am not sure where it should go - the model seems to be purely for database interactions, and the controller is executed before page display (and I want to call my function dynamically inside a loop, in the view),
anyone know where it should be placed?
Cheers,
Mick
As a Helper to the view? Cheers Mohit.