Jonathan Rockway wrote:
> Fayland Lam wrote:
>> see attachment. check if it's OK?
>>
>> now it's not per request any more. hmm, after
several requests,
> mst wrote:
>> That's trivial with
Catalyst::Component::InstancePerContext.
>
> He intended for you to use that.
>
> It implements the per-request magic for you with some
clever use of
> ACCEPT_CONTEXT and the stash. Basically, it calls your
builder method
> if you don't already have an instance in $c->stash.
Since that gets
> cleared every request, you get your per-request.
>
> So, try again You're
almost there
Thank God. it works now.
plz have a check, then I'll commit it to Catalyst trunk and
release as a
CPAN module.
Thanks for your help.
>
> Regards,
> Jonathan Rockway
>
>
>
>
------------------------------------------------------------
------------
>
> _______________________________________________
> List: Catalyst lists.rawmode.org
> Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
> Dev site: http://dev.catalyst.per
l.org/
--
Fayland Lam // http://www.fayland.org/
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|