[html-formfu] A generic way to fetch values from the stash?

Carl Franks fireartist at gmail.com
Wed Mar 26 12:46:24 GMT 2008


On 26/03/2008, Andreas Marienborg <omega at palle.net> wrote:
> Currently, I use the Catalyst-plugin to stash the language the app is
>  deployed as in the formfu-stash. I would like to use this as the
>  default-value for the country dropdown, and as such came the idea of a
>  generic way to use stash-values. Not sure how to do it cleanly though,
>  so its more a random thought at the moment
>
>
>  any ideas? Can anyone else think of useful uses for such a feature?

Can't really think of a generic way - but we could give all fields a
default_from_stash($key) method?
kinda like Model-DBIC's condition_from_stash()

Carl



More information about the HTML-FormFu mailing list