23360 Posts in 18124 Topics by 2862 members
|Go to End|
1 May 2014 at 6:09am
When choosing whether to place my template method in the Controller or the Model - what are the general best practises?
For instance I have a method to get a simple 'copyright' strapline that sits in the footer. It does a couple of things with PHP date, so would something like this be a method on the controller or the model? Both work fine...
22 May 2014 at 12:03pm
If working with dates don't forget you can call the $Now variable direct from your template.
For your scenario, I would most likley add the method to your controller though.
Hope that helps?
|Go to Top|