sub begin : Private {
my ( $self, $c) = @_;
my ($p, $i);
$p = $c->req->params;
for (grep { /^\w$/ } keys %{$p}) {
$i->{$_} = $p->{$_};
delete $p->{$_}
}
$c->stash->{params} = $p;
$c->stash->{int_params} = $i;
}
Now I have a set of separate parameters that I can use
- v = view
- f = format
- q = query
- p = page
- n = number per page
- s = sort
- c = columns
- l = language
No comments:
Post a Comment