File: TestRelative.pm

package info (click to toggle)
libcatalyst-perl 5.90132-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,016 kB
  • sloc: perl: 11,061; makefile: 7
file content (40 lines) | stat: -rw-r--r-- 799 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package TestApp::Controller::Action::TestRelative;

use strict;
use base 'TestApp::Controller::Action';

__PACKAGE__->config(
  path => 'action/relative'
);

sub relative : Local {
    my ( $self, $c ) = @_;
    $c->forward('/action/forward/one');
}

sub relative_two : Local {
    my ( $self, $c ) = @_;
    $c->forward( 'TestApp::Controller::Action::Forward', 'one' );
}

sub relative_go : Local {
    my ( $self, $c ) = @_;
    $c->go('/action/go/one');
}

sub relative_go_two : Local {
    my ( $self, $c ) = @_;
    $c->go( 'TestApp::Controller::Action::Go', 'one' );
}

sub relative_visit : Local {
    my ( $self, $c ) = @_;
    $c->visit('/action/visit/one');
}

sub relative_visit_two : Local {
    my ( $self, $c ) = @_;
    $c->visit( 'TestApp::Controller::Action::Visit', 'one' );
}

1;