Added Relative.pm
Sebastian Riedel [Thu, 10 Nov 2005 13:37:46 +0000 (13:37 +0000)]
t/live/lib/TestApp/Controller/Action/Relative.pm [new file with mode: 0644]

diff --git a/t/live/lib/TestApp/Controller/Action/Relative.pm b/t/live/lib/TestApp/Controller/Action/Relative.pm
new file mode 100644 (file)
index 0000000..84af0fc
--- /dev/null
@@ -0,0 +1,16 @@
+package TestApp::Controller::Action::Relative;
+
+use strict;
+use base 'TestApp::Controller::Action';
+
+sub relative : Local {
+    my ( $self, $c ) = @_;
+    $c->forward('/action/forward/one');
+}
+
+sub relative_two : Local {
+    my ( $self, $c ) = @_;
+    $c->forward( 'TestApp::Controller::Action::Forward', 'one' );
+}
+
+1;