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');
33 my ( $self, $c ) = @_;
39 sub inheritance : Local {
40 my ( $self, $c ) = @_;
41 $c->forward('/action/inheritance/a/b/default');
46 my ( $self, $c ) = @_;
47 $c->forward( '/global_action' );
50 sub with_args : Local {
51 my ( $self, $c, $orig ) = @_;
52 $c->forward( 'args',[qq/new/] );
53 $c->res->body( $c->req->args->[0] );
56 sub with_method_and_args : Local {
57 my ( $self, $c, $orig ) = @_;
58 $c->forward( qw/TestApp::Controller::Action::Forward args/, [qq/new/] );
59 $c->res->body( $c->req->args->[0] );
63 my ( $self, $c, $val ) = @_;
64 die "Expected argument 'new', got '$val'" unless $val eq 'new';
65 die "passed argument does not match args" unless $val eq $c->req->args->[0];