We don't bite newbies here... much | |
PerlMonks |
Re: How to organize Catalyst stashby thargas (Deacon) |
on Nov 18, 2010 at 14:07 UTC ( [id://872254]=note: print w/replies, xml ) | Need Help?? |
IMNSHO almost all of those things you call "other information" ought to be part of the payment object, and I would certainly pass that. Textual descriptions should be accessible via the appropriate reference tables using the appropriate methods on your object (specially if it's a DBIx::Class object. The urls can be pulled out of the catalyst context object which your templating system ought to have access to. I.E. I'd pass the object. I often stash other stuff, but not for the reasons you mention. CENSORED database dates! As far as I'm concerned, there are only three reasonable forms for a date in a perl program:
Sorry about that. Now I feel better.
In Section
Seekers of Perl Wisdom
|
|