Commit | Line | Data |
734a1e11 |
1 | package TestApp::Controller::Action::Action; |
2 | |
3 | use strict; |
4 | use base 'TestApp::Controller::Action'; |
5 | |
6 | sub action_action_one : Global : ActionClass('TestBefore') { |
7 | my ( $self, $c ) = @_; |
8 | $c->res->header( 'X-Action', $c->stash->{test} ); |
9 | $c->forward('TestApp::View::Dump::Request'); |
10 | } |
11 | |
12 | sub action_action_two : Global : ActionClass('TestAfter') { |
13 | my ( $self, $c ) = @_; |
14 | $c->stash->{after_message} = 'awesome'; |
15 | $c->forward('TestApp::View::Dump::Request'); |
16 | } |
17 | |
18 | sub action_action_three : Global : ActionClass('+TestApp::Action::TestBefore') { |
19 | my ( $self, $c ) = @_; |
20 | $c->forward('TestApp::View::Dump::Request'); |
21 | } |
22 | |
9287719b |
23 | sub action_action_four : Global : MyAction('TestMyAction') { |
24 | my ( $self, $c ) = @_; |
25 | $c->forward('TestApp::View::Dump::Request'); |
26 | } |
27 | |
734a1e11 |
28 | 1; |