[Catalyst] simple question ... I think ...
Matt S Trout
dbix-class at trout.me.uk
Sun Aug 13 20:39:24 CEST 2006
Joe Landman wrote:
> Matt S Trout wrote:
>
>
>> Yes, but you still don't need to use a regex action.
>>
>> sub base :Path {
>> my ($self, $c, @parts) = @_;
>> my $rest = join('/', @parts);
>> ...
>> }
>>
>> If you're using a Regex action, always first ask yourself "is there an
>> easier way to do this?". The answer is almost always yes.
>>
>
> heh... make it as simple as possible, but no simpler. Thanks! This is
> exactly what I was looking/hoping for. Works like a charm. Didn't see
> it expressed in the docs/faqs though.
>
>
http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7001/lib/Catalyst/Manual/Intro.pod#URL_Path_Handling
More information about the Catalyst
mailing list