diff options
author | dakkar <dakkar@luxion> | 2006-02-09 13:28:43 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2006-02-09 13:28:43 +0000 |
commit | 9709fdc517e57dcbccbb24ebb68128b05f1e3fdf (patch) | |
tree | b92cc7b141fe678542c8d82e6ae04308650728d6 /GroLUG/lib/GroLUG/C/Iscritti.pm | |
parent | aggiunto logout (diff) | |
download | IscrittiGroLUG-9709fdc517e57dcbccbb24ebb68128b05f1e3fdf.tar.gz IscrittiGroLUG-9709fdc517e57dcbccbb24ebb68128b05f1e3fdf.tar.bz2 IscrittiGroLUG-9709fdc517e57dcbccbb24ebb68128b05f1e3fdf.zip |
cambia i namespace
git-svn-id: svn://luxion/repos/IscrittiGroLUG/trunk@177 fcb26f47-9200-0410-b104-b98ab5b095f3
Diffstat (limited to 'GroLUG/lib/GroLUG/C/Iscritti.pm')
-rw-r--r-- | GroLUG/lib/GroLUG/C/Iscritti.pm | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/GroLUG/lib/GroLUG/C/Iscritti.pm b/GroLUG/lib/GroLUG/C/Iscritti.pm deleted file mode 100644 index 513e6ac..0000000 --- a/GroLUG/lib/GroLUG/C/Iscritti.pm +++ /dev/null @@ -1,43 +0,0 @@ -package GroLUG::C::Iscritti; - -use strict; -use warnings; -use base 'Catalyst::Controller'; - -sub login :Global { - my ( $self, $c ) = @_; - - if ($c->login) { - $c->res->redirect($c->uri_for('/iscritti')); - } - else { - $c->stash->{template}='login.tt2'; - } -} - -sub logout :Global { - my ( $self, $c ) = @_; - - $c->logout(); - - $c->res->redirect($c->uri_for('/')); -} - -sub index :Private { - my ( $self, $c ) = @_; - - $c->stash->{iscritti}=GroLUG::M::DB->resultset('Iscritto')->search({attivo=>1}); - $c->stash->{template}='lista-iscritti.tt2'; -} - -sub iscritto :Global { - my ($self,$c,$id)=@_; - - $c->log->info($c->user->id,"scheda iscritto $id"); - - $c->stash->{iscritto}=GroLUG::M::DB->resultset('Iscritto')->find($id); - - $c->stash->{template}='scheda-iscritto.tt2'; -} - -1; |