[Catalyst] simple question ... I think ...
Joe Landman
landman at scalableinformatics.com
Sun Aug 13 18:36:29 CEST 2006
Ok, being stupid today
I have a simple controller named directory. It has a default method.
So things named
http://localhost:3000/directory
should go to it. Now I want to capture
http://localhost:3000/directory/other/things/...
that is, I want this controller to handle anything past the default
method. It does this by default. My question is, how do I get access
to the rest of the path after /directory? This is what I have ...
sub default : Regex('^(.*)$') {
my ( $self, $c, $rest ) = @_;
...
}
and I want $rest to be /other/things/...
This is not working though. I tried a Path('/directory') that worked,
as long as I gave it /directory/other. As soon as I tried
/directory/other/things, it gave me /directory/other.
Hmmm...
Hints? Clues? FAQs? Pointers?
Thanks!
--
Joe Landman
landman |at| scalableinformatics |dot| com
More information about the Catalyst
mailing list