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
3
votes
3 answers

DBIx::Class insert has many

I'm using DBIx::Class and I have two Schemas: use utf8; package MyApp::Schema::Result::Person; use Moose; use MooseX::NonMoose; use MooseX::MarkAsMethods autoclean => 1; extends…
srchulo
  • 5,143
  • 4
  • 43
  • 72
3
votes
1 answer

Dispatching with Catalyst in FastCGI under Apache

I am teaching myself Catalyst. I would very much like to organise my application with multiple controllers and multiple actions in each, and maybe try chains, but I am not sure how to make this work under my specific settings. I have full control of…
scozy
  • 2,511
  • 17
  • 34
3
votes
1 answer

How can I set boilerplate information for the files generated by catalyst.pl?

When I use catalyst.pl to auto-generate my application, the AUTHOR section of the POD includes only my name like this. Kiffin Gish,,, What are the missing fields and how can I use them? Is it possible to use another boilerplate for the PODs?
Kiffin
  • 1,048
  • 1
  • 15
  • 21
3
votes
2 answers

Log output missing when using Plack::Middleware compatible exceptions in Catalyst

For my Catalyst project I am using an own Moose based exception type, that is compatible with Catalyst and my command line applications. To provide clients of my Catalyst REST interface with error messages, I implemented a code subroutine that is…
user3112922
3
votes
1 answer

Perl Catalyst - Couldn't render template..........not found

The error I am getting in the development server: [info] *** Request 2 (0.000/s) [681] [Thu Dec 12 21:05:39 2013] *** [debug] Path is "homescreen" [debug] "GET" request for "homescreen" from "192.168.1.100" [debug] Rendering template…
yonetpkbji
  • 1,019
  • 2
  • 21
  • 35
3
votes
1 answer

How can I forward a public path to another Catalyst controller?

Let say the public URL /faq is linked to the private path /faq/index in my Catalyst application: package MyApp::Controller:FAQ; sub index :Path { [....] How can I do a forward to /faq from another controller, that is how can I know that the action…
Julien
  • 5,729
  • 4
  • 37
  • 60
3
votes
1 answer

How to create a init-script for an Perl catalyst application running on nginx with fastcgi and perlbrew

I'm looking for a initscript to make usage of perlbrew on a webserver running a nginx as proxy for an perl catalyst application. I'm currently trying to start the app via source $PERLBREW execute "perlbrew use perl-5.14.4@devel" execute "mkdir…
frlan
  • 6,950
  • 3
  • 31
  • 72
3
votes
2 answers

Perl with Catalyst and DBIx::Class - How to load a sets of classes in an inheritance tree?

I would like to have a base class Vehicle and most of my system to just use ARRAYs of this type. With subtypes such as Car, Airplane etc. When calling a method such as canFly a Car would responsed false, while an Airplane would response true. I'm…
melutovich
  • 372
  • 1
  • 3
  • 15
3
votes
2 answers

perl catalyst www to non www redirect

I have a hosting platform that hosts multiple clients' websites. It is a Catalyst app load balanced behind nginx. I would like each client to have the ability to choose whether they want to have their domain have www in front of it or no www in…
srchulo
  • 5,143
  • 4
  • 43
  • 72
3
votes
1 answer

catalyst deploy for high performance site

I'm going to deploy a Catalyst web app, but I am not sure what is the best way to deploy it. I've seen a lot of names come up, such as nginx,Starman,fastcgi, mod_perl, Apache, Plack, however I have not been able to find out which way is the best way…
3
votes
1 answer

HTML::FormHandler roles vs fields

I'm using HTML::FormHandler, and in an effort to not repeat a lot of code I am trying to split my form up into reuasable pieces as suggested by the HTML::FormHandler Cookbook. It discusses being able to create your own fields or your own roles to…
srchulo
  • 5,143
  • 4
  • 43
  • 72
3
votes
2 answers

DBIx::Class::Schema::Loader connect to db on different machine

I'm using DBIx::Class:Schema::Loader via the command line to generate schema from my database for DBIx::Class for my Catalyst app. This is the command that I use: script/myapp_create.pl model DB DBIC::Schema myapp::Schema create=static…
srchulo
  • 5,143
  • 4
  • 43
  • 72
3
votes
1 answer

How to choose a tool for handling forms with Catalyst Framework?

I'm using the Catalyst Framework to develop a small app. I'm actually searching for a way to handling my forms in a more common way. The Catalyst Tutorial told about tree different modules and give recommendations for 2 tools, HTML::FormFu and…
smonff
  • 3,399
  • 3
  • 36
  • 46
3
votes
1 answer

How can I dynamically change a Maketext lexicon in my application?

I have made my website multi-language via Locale::Maketext (or more specifically with CatalystX::I18N::Model::Maketext). My maketext classes load the lexicon into the package var %Lexicon at compile time by loading it from a database. I wanted to…
cubabit
  • 2,527
  • 3
  • 21
  • 34
3
votes
2 answers

Catalyst: how declare a global subroutine

Hi i don't want to repeate the same code in the controllers, so i created a sub in the main MyApp package: sub do_stuff { my $input = shift; do something } But then i want to use it in controller MyApp::Controller::Foo sub test :…
theguest
  • 83
  • 4