[Catalyst] RunAfterRequest/delayed Catalyst view
Steve Kleiman
steve at prodhub.com
Fri Apr 30 06:00:45 GMT 2010
I posted this a while ago but I think it got lost in that tumultuous "Alternatives to Catalyst" melee. Figured I'd try again now that things have calmed down a bit....
Using Catalyst::Plugin::RunAfterRequest to handle some housekeeping after I've executed $c->detach. Works great, but...
What I'd really like to do is be able to dispatch an email from within the RunAfterRequest subroutine using Catalyst::View::Email. But when $c->forward( $c->view('Email::Template') ) is called, no email is sent.
I guess that makes sense that after ->detach is called, you can't forward to any views. Or maybe there's a way around that?
Thanks in advance for any insights.
Steve Kleiman
steve at prodhub.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100429/7e74f8a9/attachment.htm
More information about the Catalyst
mailing list