Removed Persistent Perl from cookbook
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Forward.pm
CommitLineData
dd4e6fd2 1package TestApp::Controller::Action::Forward;
2
3use strict;
4use base 'TestApp::Controller::Action';
5
6sub one : Relative {
7 my ( $self, $c ) = @_;
8 $c->forward('two');
9}
10
11sub two : Private {
12 my ( $self, $c ) = @_;
13 $c->forward('three');
14}
15
16sub three : Relative {
17 my ( $self, $c ) = @_;
18 $c->forward('four');
19}
20
21sub four : Private {
22 my ( $self, $c ) = @_;
7eb331e7 23 $c->forward('/action/forward/five');
dd4e6fd2 24}
25
26sub five : Relative {
27 my ( $self, $c ) = @_;
28 $c->forward('TestApp::View::Dump::Request');
29}
30
7eb331e7 31
dd4e6fd2 32sub jojo : Relative {
33 my ( $self, $c ) = @_;
34 $c->forward('one');
35 $c->forward('three');
36}
37
c462faf0 38
39sub inheritance : Relative {
40 my ( $self, $c ) = @_;
41 $c->forward('engine/response/cookies/one');
42 $c->forward('five');
43}
44
e5d7f18c 45sub global : Relative {
46 my ( $self, $c ) = @_;
47 $c->forward('/global_action');
48}
49
50
dd4e6fd2 511;