[Catalyst] Help System - Can a controller's index capture the
remainder of the path as a series of arguments?
David Schmidt
davewood at gmx.at
Thu Mar 31 16:32:04 GMT 2011
On Thu, Mar 31, 2011 at 6:22 PM, Bill Crawford
<billcrawford1970 at gmail.com> wrote:
> On 31 March 2011 17:21, Bill Crawford <billcrawford1970 at gmail.com> wrote:
>> sub help : Chained('/') Args {
>> my ( $self, $c, @path ) = @_;
>>
>> my $path = join('/', @path);
>> ...
>> }
>
> Uh, : Chained('/') PathPart('help') Args { ...
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
And use
http://search.cpan.org/~bobtfish/Catalyst-Runtime-5.80032/lib/Catalyst/Request.pm#$req-%3Epath
for creating the link of the help button
More information about the Catalyst
mailing list