Jason Purdy wrote:
This is when CGI::Application::Dispatch helps out, tremendously. Once
you set it up, the action in your case translates to the runmode along
with optional parameters.
http://search.cpan.org/~markstos/CGI-Application-Dispatch-2.14/lib/CGI/Application/Dispatch.pm
Yes, sorry
Clayton Scott wrote:
On Wed, Dec 3, 2008 at 6:03 AM, Richard Jones <[EMAIL PROTECTED]>wrote:
As in Catalyst action. Currently doing this:
my $action = (split '/', $ENV{PATH_INFO})[1];
So in a request http://localhost/myapp/admin/list_users, the action would
be 'admin', so I can highlight the
This is when CGI::Application::Dispatch helps out, tremendously. Once
you set it up, the action in your case translates to the runmode along
with optional parameters.
http://search.cpan.org/~markstos/CGI-Application-Dispatch-2.14/lib/CGI/Application/Dispatch.pm
- Jason
Richard Jones wrote:
A
On Wed, Dec 3, 2008 at 6:03 AM, Richard Jones <[EMAIL PROTECTED]>wrote:
> As in Catalyst action. Currently doing this:
>
> my $action = (split '/', $ENV{PATH_INFO})[1];
>
> So in a request http://localhost/myapp/admin/list_users, the action would
> be 'admin', so I can highlight the appropriate na
As in Catalyst action. Currently doing this:
my $action = (split '/', $ENV{PATH_INFO})[1];
So in a request http://localhost/myapp/admin/list_users, the action
would be 'admin', so I can highlight the appropriate navigation link.
But I'd assume there's a better way, something build-in to CGI::