[Catalyst] Has $c->response->redirect behaviour changed?
Chisel Wright
chisel at herlpacker.co.uk
Wed Jan 25 13:04:49 CET 2006
On Wed, Jan 25, 2006 at 11:59:17AM +0000, Alex Kavanagh wrote:
> > ---- cut here ----
> > # updated to use information from:
> > # http://catalyst.perl.org/calendar/2005/8/
> > # use DefaultEnd magic
> > $c->NEXT::end( $c );
> ^^^^^^^^^^^^^^^^^^^^^^
> I'm not expert on NEXT but aren't you passing $c *twice* to
> DefaultEnd's end? It could just be me not understanding, but I would
> probably have done (wrongly?) :
>
> $self->NEXT::end($c);
Yes, the double use of $c did make me suspicious. I blindly followed the
example in the link: http://catalyst.perl.org/calendar/2005/8/
I kept meaning to change to $self to see what happens, or ask about it
but I keep forgetting.
...
...
While I think about it, I've been reading
http://catalyst.perl.org/calendar/2005/8/ and I noticed that there was
double-use of $c in the example:
$c->NEXT::end( $c );
Is this correct? SHould it be $self->NEXT::end($c);
:-D
Chisel
--
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/
This is not an automated signature. I type this in to the bottom of every
message.
More information about the Catalyst
mailing list