Thanks to Bill and David the info. I'm still learning how to use
Catalyst, it's almost overwhelming when compared to CakePHP ( which is
what I started with as my first framework ) here is what I've got:

My button: <a href="[% c.uri_for('/help', c.action ) %]"
class="button" id="menu-help">Help</a>

My Help controller:
sub index : Chained('/') PathPart('help') Args {
    my ( $self, $c, @path ) = @_;

    my $path = join('/', @path);

    $c->stash->{template} = "help/$path.tt";
}

Seems to work fine. Any suggestions for improvements?

Kyle

http://www.kylehall.info
Mill Run Technology Solutions ( http://millruntech.com )
Crawford County Federated Library System ( http://www.ccfls.org )
Meadville Public Library ( http://www.meadvillelibrary.org )




On Thu, Mar 31, 2011 at 12:32 PM, David Schmidt <[email protected]> wrote:
> On Thu, Mar 31, 2011 at 6:22 PM, Bill Crawford
> <[email protected]> wrote:
>> On 31 March 2011 17:21, Bill Crawford <[email protected]> wrote:
>>> sub help : Chained('/') Args {
>>>    my ( $self, $c, @path ) = @_;
>>>
>>>    my $path = join('/', @path);
>>>    ...
>>> }
>>
>> Uh, : Chained('/') PathPart('help') Args { ...
>>
>> _______________________________________________
>> List: [email protected]
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive: http://www.mail-archive.com/[email protected]/
>> 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
>
> _______________________________________________
> List: [email protected]
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to