Questions tagged [cgiapp]

5 questions
6
votes
1 answer

Dealing with multiple-inherited constructors in Moose

Greetings, I'm learning Moose and I'm trying to write a CGI::Application subclass with Moose, which is made difficult by the fact that CGI-App is not based on Moose. In my other CGI-App subclasses, I like to have a parent class with a setup method…
friedo
  • 65,762
  • 16
  • 114
  • 184
5
votes
1 answer

Problem with mixins in a MooseX::NonMoose class

Consider the following: package MyApp::CGI; use Moose; use MooseX::NonMoose; use Data::Dumper; extends 'CGI::Application'; BEGIN { print "begin isa = " . Dumper \@MyApp::CGI::ISA; }; print "runtime isa = " . Dumper \@MyApp::CGI::ISA; ...…
friedo
  • 65,762
  • 16
  • 114
  • 184
4
votes
2 answers

How do I have a persistent DBIx::Class in CGI::Application with mod_perl?

I am using CGI::Application on mod_perl with DBIx::Class and I'd like to have something like new define a new dbic schema on instantiation. So far I haven't been able to get it to work. The closest thing I have come to is a superclass that has a…
Frew Schmidt
  • 9,364
  • 16
  • 64
  • 86
4
votes
2 answers

Perl CGI::Application::Plugin:Stream + Jquery Taconite plugin - Cannot download file

I am using the Stream (qw/stream_file/) Plugin for CGI::Application within a runmode to read a file from the filesystem and stream it back to the user. The user clicks on a link whose "id" attribute I use in an ajax call using Jquery to fetch the…
user135667
  • 51
  • 2
3
votes
2 answers

Can I have regular parameters along with CGI::Application::Dispatch?

I appreciate the ability to be able to do: http://server/controller/runmode or even http://server/controller/runmode/id. But if I have a lot of optional parameters I'd like to be able to do the regular:…
Frew Schmidt
  • 9,364
  • 16
  • 64
  • 86