Commit | Line | Data |
dd4e6fd2 |
1 | package TestApp::Controller::Action::Forward; |
2 | |
3 | use strict; |
4 | use base 'TestApp::Controller::Action'; |
5 | |
6 | sub one : Relative { |
7 | my ( $self, $c ) = @_; |
8 | $c->forward('two'); |
9 | } |
10 | |
11 | sub two : Private { |
12 | my ( $self, $c ) = @_; |
13 | $c->forward('three'); |
14 | } |
15 | |
16 | sub three : Relative { |
17 | my ( $self, $c ) = @_; |
18 | $c->forward('four'); |
19 | } |
20 | |
21 | sub four : Private { |
22 | my ( $self, $c ) = @_; |
7eb331e7 |
23 | $c->forward('/action/forward/five'); |
dd4e6fd2 |
24 | } |
25 | |
26 | sub five : Relative { |
27 | my ( $self, $c ) = @_; |
28 | $c->forward('TestApp::View::Dump::Request'); |
29 | } |
30 | |
7eb331e7 |
31 | |
dd4e6fd2 |
32 | sub jojo : Relative { |
33 | my ( $self, $c ) = @_; |
34 | $c->forward('one'); |
35 | $c->forward('three'); |
36 | } |
37 | |
c462faf0 |
38 | |
39 | sub inheritance : Relative { |
40 | my ( $self, $c ) = @_; |
41 | $c->forward('engine/response/cookies/one'); |
42 | $c->forward('five'); |
43 | } |
44 | |
dd4e6fd2 |
45 | 1; |