[Handel] plugin for checkout

Jan Gerene jan at gerene.be
Fri Aug 18 12:34:26 CEST 2006


Op maandag 14 augustus 2006 17:35, schreef Christopher H. Laco:

> package MyController;
> sub foo : Local {
> 	my ($self, $c) = @_;
>
> 	my $stash = Handel::Checkout::Stash->new;
> 	$stash->{'catalyst'} = $c;
>
> 	my $checkout = Handel::Checkout->new({stash => $stash});
> 	...
> 	$checkout->process;
> };
>
> ...within the plugin....
>
> package MyPlugin;
> sub handler {
> 	my ($self, $ctx) = @_;
> 	my $catctx = $ctx->stash->{'catalyst'};
> 	...
> };

Chris, 

this does not work since $checkout->process calls $stash->clear before calling 
the plugins (at least in version 0.33)

Best Regards,

-- 
Jan Gerene
Heikant 99
2560 Bevel
gsm: +32-475406294
tel: +32-32191252



More information about the Handel mailing list