1 package TestApp::Controller::Action::Forward;
4 use base 'TestApp::Controller::Action';
12 my ( $self, $c ) = @_;
17 my ( $self, $c ) = @_;
22 my ( $self, $c ) = @_;
23 $c->forward('/action/forward/five');
27 my ( $self, $c ) = @_;
28 $c->forward('TestApp::View::Dump::Request');
32 my ( $self, $c ) = @_;
33 $c->forward('TestApp::View::Dump::False');
38 my ( $self, $c ) = @_;
44 sub inheritance : Local {
45 my ( $self, $c ) = @_;
46 $c->forward('/action/inheritance/a/b/default');
51 my ( $self, $c ) = @_;
52 $c->forward( '/global_action' );
55 sub with_args : Local {
56 my ( $self, $c, $orig ) = @_;
57 $c->forward( 'args',[qq/new/] );
58 $c->res->body( $c->req->args->[0] );
61 sub with_method_and_args : Local {
62 my ( $self, $c, $orig ) = @_;
63 $c->forward( qw/TestApp::Controller::Action::Forward args/, [qq/new/] );
64 $c->res->body( $c->req->args->[0] );
68 my ( $self, $c, $val ) = @_;
69 die "Expected argument 'new', got '$val'" unless $val eq 'new';
70 die "passed argument does not match args" unless $val eq $c->req->args->[0];