Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
There's more than one way to do things
 
PerlMonks  

Re: Catalyst request handling

by Anonymous Monk
on Nov 22, 2005 at 12:09 UTC ( [id://510859]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Catalyst request handling

Scene 3 does that because default doesn't work that way. If you wanted the namespace stripped then you'd do something like
sub base :Path('') {
...
}

which will be a path action anchored at /greeting and as such should see args of ('hello', 'world').
Scene 4, I'm not entirely sure - I wonder if there's a default in your app class picking up the result or similar ...
- Matt S Trout (mst on irc.perl.org)

Replies are listed 'Best First'.
Re^2: Catalyst request handling
by redlemon (Hermit) on Nov 22, 2005 at 13:16 UTC

    Thanks, your 'base()' suggestion does work indeed.

    There's nothing else in any of the files than whatI described in my question. However, in the mean time I've upgraded to Catalyst 5.57, which does behave as expected. So I guess it was a bug in an earlier version.

    Thanks for explaining.
    --
    Lyon

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510859]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.