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 ) = @_; |
23 | $c->forward('five'); |
24 | } |
25 | |
26 | sub five : Relative { |
27 | my ( $self, $c ) = @_; |
28 | $c->forward('TestApp::View::Dump::Request'); |
29 | } |
30 | |
31 | sub jojo : Relative { |
32 | my ( $self, $c ) = @_; |
33 | $c->forward('one'); |
34 | $c->forward('three'); |
35 | } |
36 | |
37 | 1; |