Questions tagged [catalyst]

Catalyst is a Perl web application framework, similar to Ruby on Rails, Spring (Java), and Maypole.

Catalyst is an elegant web application framework written in the Perl programming language, extremely flexible yet extremely simple. It's similar to Ruby on Rails, Spring (Java), and Maypole, upon which it was originally based. Its most important design philosphy is to provide easy access to all the tools you need to develop web applications, with few restrictions on how you need to use these tools.

http://www.catalystframework.org/

Resources to learn Catalyst:

Useful Links:

524 questions
0
votes
1 answer

How to display error messages in Trigger.io catalyst?

I am using Trigger.io to deploy my application. I am also using catalyst as my debugging tool http://trigger.io/catalyst/. The issue I am facing is that in the debug console, errors don't seem to be registered For instance, I deliberately created an…
Zhen
  • 12,361
  • 38
  • 122
  • 199
0
votes
1 answer

How do I grab all the request parameters in Catalyst?

Specifically I'm trying to capture all the POST parameters from a payment gateway as a single string, and then parse them looking for the string 'ERROR'. I'm aware that there's a $c->request->parameters method, but I'm not quite sure how its used…
freakwincy
  • 1,257
  • 2
  • 11
  • 16
0
votes
2 answers

DBIx::Class::ResultSet iterate over items new query every time

I am using DBIx::Class::ResultSet to query for items and paginate my data. This is the query I use: my $clients = $c->model('DB::User')->search( { active_yn => 'y', client_yn => 'y' }, { columns => [qw/id first_name last_name…
srchulo
  • 5,143
  • 4
  • 43
  • 72
0
votes
2 answers

catalyst with nginx and fastcgi reload application without downtime

One of the benefits that's always listed when comparing mod_perl vs. fastcgi, is that for mod_perl you have to completely reload the app and have downtime, but with fastcgi you can reload the app without having downtime. However, I cannot find any…
srchulo
  • 5,143
  • 4
  • 43
  • 72
0
votes
1 answer

perl Template::Alloy with Catalyst not displaying properly

From my understanding, Template::Alloy::TT should be interchangable with Template Toolkit, however I am having some issues trying to swap one out with the other. Here is the config for my view file: package maypp::View::HTML; use strict; use base…
srchulo
  • 5,143
  • 4
  • 43
  • 72
0
votes
3 answers

How do I create a session in Catalyst?

Trying to figure our how to create, store and retrieve session info in Catalyst. Any suggestions?
freakwincy
  • 1,257
  • 2
  • 11
  • 16
0
votes
1 answer

Dropdown box on change event for multiple list box

my ($self, $c) = @_; $c->stash->{buildallinfo}=$c->model('DB::misc')->getTestInformation(); Buildall info dump is like : Apple => type2=>[2,3] type4=>[2,1] Mango => type6=>[2,3] type2=>[2,1] How to render them in drop down box if drop…
joe
  • 34,529
  • 29
  • 100
  • 137
0
votes
1 answer

Configuring form_path in Catalyst::Controller::Formbuilder

Using the Catalyst::Controller::FormBuilder module to handle forms in a Catalyst application. The documentation says you can set the form_path like this: form_path => File::Spec->catfile( $c->config->{home}, 'root', 'forms' ), But the call to…
0
votes
2 answers

Perl Catalyst, pass to stash 2 template parts

I started learning Perl Catalyst and its awesome!!! However, I am having a little issue here with templateing. I am trying to pass two template variables to the page (header and footer), what I did in the Controller function is $c->stash(template =>…
Grigor
  • 4,139
  • 10
  • 41
  • 79
0
votes
3 answers

How to create global var $schema for connection to DB in Catalyst app?

I've created a model lib/MyApp/Model/Foo.pm. Inside it: ... sub bar { my $schema = MyApp::Schem->connect("dbi:SQLite:data.db"); } ... It works fine but when I write so: ... my $schema = MyApp::Schema->connect("dbi:SQLite:data.db"); sub bar…
edem
  • 3,222
  • 3
  • 19
  • 45
0
votes
1 answer

HTML::FormHandler just 1 option not rendering correctly

I'm using HTML::FormHandler and building the form dynamically like so: my $form = HTML::FormHandler->new( name => 'types', field_list => [ parent_id => { type => 'Select', label…
srchulo
  • 5,143
  • 4
  • 43
  • 72
0
votes
1 answer

when is it most appropriate to use a micro framework? (instead of something like rails, django or catalyst)

I have spent some time familiarizing myself with rails (ruby), django...and other things like zope and pylons/pyramid (python), catalyst (perl) but often find myself wanting to use sinatra (ruby) bottle...or flask...(python) dancer...(perl) I'm…
pepper
  • 2,097
  • 5
  • 23
  • 29
0
votes
0 answers

HTML::FormHandler dynamic form use your own widgets

I'm using HTML::FormHandler to dynamically create a form like so: my $form = HTML::FormHandler->new( name => 'types', field_list => \@field_list, widget_name_space => ['my_app::Form::Widget'], ); I am trying to use my own widget for a…
srchulo
  • 5,143
  • 4
  • 43
  • 72
0
votes
1 answer

HTML::FormHandler dynamic form with HTML::FormHandler::Widget::Theme::Bootstrap

I'm using HTML::FormHandler and creating a dynamic form, and I'd like to be able to use HTML::FormHandler::Widget::Theme::Bootstrap with it. However, I can't figure out how to get a dynamic form to include 'withs'. The documentation shows that you…
srchulo
  • 5,143
  • 4
  • 43
  • 72
0
votes
2 answers

Capturing Catalyst Response Body of Another Action

On one of my pages, I'm trying to go grab the contents of another page from a different controller, and then take that HTML and use it to make a little "widget" on the first page. If I was grabbing off the current page, I could just do: my $html =…
Ryan
  • 672
  • 1
  • 6
  • 16