Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to organize Catalyst stash

by perl5ever (Pilgrim)
on Nov 18, 2010 at 15:25 UTC ( #872268=note: print w/ replies, xml ) Need Help??


in reply to How to organize Catalyst stash

For the URLS and textual descriptions of payment values I would create other objects which provide that information.

For instance, to translate payment type codes into human readable text, have an object available to the template which when given a payment code returns the associated textual description.

In fact, a payment type code is an example of an "enumeration type", and your application probably has several instances of enumerations. So this is an object you could generalize and use for all of your enumerations. Having a single object would also simplify making this service available to the template.

This would work very much like the way localization is implemented in templates.


Comment on Re: How to organize Catalyst stash

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://872268]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2014-07-31 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls