Forward to a mason component so the autohandler is invoked
[sgn.git] / cgi-bin / image / index.pl
blobecd4fcbd89128445ff78955e756a900410a77b57
1 use CatalystX::GlobalContext qw( $c );
2 use strict;
3 use warnings;
5 use CGI;
6 use CXGN::DB::Connection;
7 use CXGN::Login;
9 my $q = CGI->new();
10 my $dbh = CXGN::DB::Connection->new();
11 my $login = CXGN::Login->new($dbh);
13 my $person_id = $login->has_session();
15 my ($image_id, $size) = ($q->param("image_id"), $q->param("size"));
17 $c->forward_to_mason_view('/image/index.mas', object_id=>$image_id, size=>$size, person_id=>$person_id, dbh=>$dbh);