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

Mailing List Archive: Catalyst: Users
Chained methods and action?
 

Index | Next | Previous | View Flat


user783 at rambler

Apr 28, 2012, 5:23 AM


Views: 138
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.

Subject User Time
Chained methods and action? user783 at rambler Apr 28, 2012, 5:23 AM

  Index | Next | Previous | View Flat
 
 


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