[Catalyst-commits] r11051 -
trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/Controller
dandv at dev.catalyst.perl.org
dandv at dev.catalyst.perl.org
Fri Aug 7 11:08:37 GMT 2009
Author: dandv
Date: 2009-08-07 11:08:35 +0000 (Fri, 07 Aug 2009)
New Revision: 11051
Added:
trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/Controller/Root.pm
Log:
Added Root.pm to avoid '[error] No default action defined'
Added: trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/Controller/Root.pm
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/Controller/Root.pm (rev 0)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/Controller/Root.pm 2009-08-07 11:08:35 UTC (rev 11051)
@@ -0,0 +1,15 @@
+package TestApp::Controller::Root;
+
+use strict;
+use warnings;
+use parent 'Catalyst::Controller';
+
+__PACKAGE__->config->{namespace} = '';
+
+sub default :Path {
+ my ( $self, $c ) = @_;
+ $c->response->body( 'Page not found' );
+ $c->response->status(404);
+}
+
+1;
More information about the Catalyst-commits
mailing list