i want to make a ‘calendar object’ which generates three different style calendars to display, they’ll all use the same data. should i do the logic for the calendar style in the view, or should i do that in the controller and then call it from the view?
i want to make a ‘calendar object’ which generates three different style calendars to
Share
I’d personally design it so that only entities within a certain date range were passed to the view and leave all the logic regarding how to render it to the view.
There’s nothing stopping your from cleaning breaking down the view further than that, but it’s a view’s concern, not a controllers.