[Catalyst] C::P::SubRequest and $c->request->param
Renaud
renaud at linuxaddicts.com
Mon Nov 20 16:05:36 GMT 2006
Hello,
I am not sure whether this is a normal behaviour or a bug, but this is
what I experienced using the SubRequest plugin: (everything's up to date)
sub bleh : Local {
my ($self, $c) = @_;
my $body = "Before subreq, foo == " . $c->req->param('foo');
$c->subreq('/index');
$body .= "\nAfter subreq, foo == " . $c->req->param('foo');
$c->res->body($body);
}
sub index : Private {
my ($self, $c) = @_;
$c->res->body("index");
}
When calling http://localhost:3000/bleh?foo=foo, this will output:
Before subreq, foo == foo
After subreq, foo ==
Is this normal that SubRequest destroys the original parameters, am I
doing something wrong?
Regards,
Renaud
More information about the Catalyst
mailing list