Mvc pattern: where should I place this php code?
<p>I'm developing a php application and enforcing a strict mvc pattern  whenever possible. I have a view,the header of the page, which should change the background image depending on the current month. Where should I place the php logic to decide which image to use as the Background? Inside the view file or on the caller (The parent file which includes the view)? If I put the code in the caller then I have to replicate the logic for each page (Every page has the same header view). I could put the logic inside the view, avoiding code duplication,  but should a view supposed to have only view code? (no business logic)?</p>