[Catalyst] Catalyst::Request::param Bug?

Sebastian Riedel sri at oook.de
Sat Jun 25 03:02:08 CEST 2005


Am 25.06.2005 um 02:42 schrieb James Tolley:

> Hello,
>
> I think that I've found a bug in the Catalyst::Request shipped with  
> 5.23:
>
> the docs say:
>
>     $req->param
>         Get request parameters with a CGI.pm like param method.
>
>             $value  = $c->request->param('foo');
>             @values = $c->request->param('foo');
>             @params = $c->request->param;
>
>     $req->params
>         Shortcut for $req->parameters.
>
>     $req->parameters
>         Returns a reference to a hash containing parameters. Values  
> can be
>         either a scalar or a arrayref containing scalars.
>
>             print $c->request->parameters->{field};
>             print $c->request->parameters->{field}->[0];
>
> But when I Data::Dumper::Dumper($c->req), I get:
>
> 'parameters' => bless( {
>     '_groups' => {
>         'All' => 1,
>         'Primary' => 1
>     },
>     'name' => 'id',
>     'mutator' => 'id',
>     'placeholder' => '?',
>     'accessor' => 'id'}, 'Class::DBI::Column' ),When (in Hops)  
> there should
> be order => 'name', etc.Could I be missing something?Thanks!James

Thats definately a Hops bug, why should $c->req contain a cdbi object?


--
sebastian




More information about the Catalyst mailing list