[Radiant] Accessing Flash/Session in Radiant Tags?
J Aaron Farr
farra at apache.org
Mon Feb 11 04:11:26 CST 2008
Casper Fabricius <me at casperfabricius.com> writes:
>> 1) Is there any other way to access the flash or session data from
>> a tag?
>
>
> It can be done, but it requires a bit of patching. You need to put the
> request and response objects in the globals for the tag to access, and
> bear in mind that you need to reenable to sessions for sitecontroller:
>
> module SiteControllerExt
> def self.included(base)
> base.class_eval {
> # This reenables the session for the SiteController -
> session :on does not work!
> session :disabled => false
> }
> end
> end
Thanks.
I thought about this, but it smelled bad to me, so I wanted to ask
around first.
--
J Aaron Farr jadetower.com [US] +1 724-964-4515
馮傑仁 cubiclemuses.com [HK] +852 8123-7905
More information about the Radiant
mailing list