source: trunk/Vote/lib/Vote/Controller/Root.pm @ 2

Last change on this file since 2 was 2, checked in by nanardon, 15 years ago
  • create with catalyst
File size: 812 bytes
Line 
1package Vote::Controller::Root;
2
3use strict;
4use warnings;
5use base 'Catalyst::Controller';
6
7#
8# Sets the actions in this controller to be registered with no prefix
9# so they function identically to actions created in MyApp.pm
10#
11__PACKAGE__->config->{namespace} = '';
12
13=head1 NAME
14
15Vote::Controller::Root - Root Controller for Vote
16
17=head1 DESCRIPTION
18
19[enter your description here]
20
21=head1 METHODS
22
23=cut
24
25=head2 default
26
27=cut
28
29sub default : Private {
30    my ( $self, $c ) = @_;
31
32    # Hello World
33    $c->response->body( $c->welcome_message );
34}
35
36=head2 end
37
38Attempt to render a view, if needed.
39
40=cut 
41
42sub end : ActionClass('RenderView') {}
43
44=head1 AUTHOR
45
46Thauvin Olivier
47
48=head1 LICENSE
49
50This library is free software, you can redistribute it and/or modify
51it under the same terms as Perl itself.
52
53=cut
54
551;
Note: See TracBrowser for help on using the repository browser.