Let's have three practical examples >>> where do you place them, in your opinion (I don't need the code, i already have code that works, i just want to know where you think i should place them)
1) Function to get a time difference between two DateTime : should be a function called to calculate the difference between two dateTime. I have a start time, a end time, and want to create a function with those two arguments, that returns the time difference in minutes
2) Display data from another table / model in a view : i want to display a list of problems that have occured during a day at work : on the same page, i have informations about that day (model dailyReport) but i also need to display the informations of the "Incidents" table)
3) Add a button to send a mail containing the informations of an item page.
Again, i don't need the code, i need opinion on best practice, best place to place it.