Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Chained methods and action?

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


user783 at rambler

Apr 28, 2012, 5:23 AM

Post #1 of 1 (200 views)
Permalink
Chained methods and action?

Hello everyone,

I just started playing with Action and met some problems,,,

so far I have a setup like this

/myapp/map/myapp/bob/myapp/...

This action was created by something like this:

sub site_map :Chained('/') :PathPart('map') {...}

sub bob_page :Chained('/') :PathPart('bob') {...}

I can use get action by name of methods (private or public)

my $action = $c->controller->action_for('site_map');

ormy $action = $c->controller->action_for('bob_page');

!! Are there any way to get action by name create chained method such as:

my $action = $c->controller->action_for('map');

or

my $action = $c->controller->action_for('bob');

Denis Spichkin.

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.