source: LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Users.pm @ 104

Last change on this file since 104 was 104, checked in by nanardon, 15 years ago
  • start User controller
File size: 726 bytes
Line 
1package LATMOS::Accounts::Web::Controller::Users;
2
3use strict;
4use warnings;
5use base 'LATMOS::Accounts::Web::Controller';
6
7=head1 NAME
8
9LATMOS::Accounts::Web::Controller::Users - Catalyst Controller
10
11=head1 DESCRIPTION
12
13Catalyst Controller.
14
15=head1 METHODS
16
17=cut
18
19
20=head2 index
21
22=cut
23
24sub index : Private {
25    my ( $self, $c ) = @_;
26
27}
28
29sub default : LocalPath {
30    my ( $self, $c, undef, $username ) = @_;
31
32    my $base = $c->model('Accounts')->db;
33
34    $c->stash->{username} = $username;
35    $c->stash->{user} = $base->get_object('user', $username);
36}
37
38=head1 AUTHOR
39
40Thauvin Olivier
41
42=head1 LICENSE
43
44This library is free software, you can redistribute it and/or modify
45it under the same terms as Perl itself.
46
47=cut
48
491;
Note: See TracBrowser for help on using the repository browser.