OK, I’ve googled and found some discussion about this and seen the
scolding about breaking the MVC pattern as in “why do you need to do
that?”, but I do have a situation where it makes some sense. Let me
I have a new service called redeyestats.com and the major function is
to send a daily email with a report (specifically a daily stats
listing for sports players that the user is following). This report
mirrors a page with the same info on the site.
I want to keep things DRY, so it seemed like a good idea to create a
Reporter class that would compile each player report for both cases of
a) compiling the email and b) the site’s page listing. Each player
report has links in it to the player’s page, their team page, and to a
game page for their latest game.
So, I do have a need to build links within this reporter object. It’s
not a model object in the sense of MVC, but it’s not a controller or a
view and , so, it doesn’t resolve the named routes.
I’m open to suggestions for another approach that will work for both
of my use cases… or for a way to make this work as designed.
Does anyone have suggestions on how to make this work? Thx