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

How to limit a request to POST in Catalyst

I'm very new to Catalyst and just starting building up a web app to learn some stuff. One thing that I haven't figured out is how to limit the requests to a given controller method to POST (for instance). A concrete example would be, the request…
pcalcao
  • 15,789
  • 1
  • 44
  • 64
4
votes
2 answers

How can I introduce a regex action to match the first element in a Catalyst URI?

Background: I'm using a CRUD framework in Catalyst that auto-generates forms and lists for all tables in a given database. For example: /admin/list/person or /admin/add/person or /admin/edit/person/3 all dynamically generate pages or forms as…
RET
  • 9,100
  • 1
  • 28
  • 33
4
votes
0 answers

How to cross-compile curl on macosx to suport MAC catalyst Apple silicon?

catalyst + x86_64 to support intel script as below: export CFLAGS="-target x86_64-apple-ios13.0-macabi -arch x86_64 -pipe -Os -gdwarf-2 -mmacosx-version-min="10.15" -fembed-bitcode -Werror=partial-availability" export CXXFLAGS="-target…
xuejieNian
  • 63
  • 6
4
votes
2 answers

DBIx:Class many-to-many relationship with additional attribute

I'm working with DBIx::Class in Catalyst framework. My local goal is to add a new many-to-many relationship between users and, let's say, tasks. But there's one little trick I need. User can have different roles in task (like 'worker' or…
Andrei Arsenin
  • 1,201
  • 1
  • 9
  • 10
4
votes
2 answers

Why does a curl POST request crash my Catalyst::Controller::REST controller?

I'm using Catalyst to build a RESTful web service, so I create a Catalyst controller in the usual way script/myapp_create.pl controller MyApp::Controller I then fire up the catalyst test server script/zoo_server.pl -rd So far so good - I can now…
Ian Holmes
  • 75
  • 6
4
votes
4 answers

How do I add /doc/ to the end of every URL in Catalyst?

We're trying to make our REST API a bit more friendly, We have a base class for our REST API which inherits from Catalyst::Controller::REST. Each REST class can identify the query parameters it accepts. We thought it would be nice to make this…
Ovid
  • 11,580
  • 9
  • 46
  • 76
4
votes
1 answer

Spark: Explicit caching can interfere with Catalyst optimizer's ability to optimize some queries?

I'm studying to take the data bricks to spark certification exam, and their practice exam ( please see > https://databricks-prod-cloudfront.cloud.databricks.com/public/793177bc53e528530b06c78a4fa0e086/0/6221173/100020/latest.html ) requires us to…
Chris Bedford
  • 2,560
  • 3
  • 28
  • 60
4
votes
1 answer

Why does this conditional redirect in Catalyst not work?

I have a Catalyst application and would like to redirect based on a conditional statement. I am having trouble with this and I'm wondering if anyone might have insight into why this seemingly easy task is proving difficult. In my Root.pm module I…
CodeWriter
  • 337
  • 2
  • 7
4
votes
1 answer

"su" Equivalent for Web Application Auth, Design Question

I develop and maintain a customer portal, written in Perl/Catalyst. We make use of the Catalyst authentication plugins (w/ an LDAP storage backend, coupled with a few deny_unless rules to ensure the right people have the right group…
Kaiden
  • 308
  • 2
  • 6
4
votes
4 answers

what hosts support Catalyst Framework Apps

I would like to use the Perl Catalyst Framework on a Shared Hosting Service, but I don't know if there are any that do support it. Are there minimum requirements in order to be able to run a catalyst app? Any help is appreciated.
kushan-
  • 168
  • 1
  • 7
4
votes
1 answer

Calling OpenComPort using Win32::API

I am having trouble calling a third party dll to control an rfid reader. this is my code: use Win32::API; Win32::API::More->Import("kernel32", "int GetCurrentProcessId()"); Win32::API::More->Import("UHFReader288.dll",…
Njugu
  • 81
  • 3
4
votes
1 answer

Iterating through a Perl array from an AJAX request

I'm working on a Catalyst database project and trying to do some AJAX requests via jQuery. Parameters are being sent OK, as can be seen in image 1. Notice that both "diagnosis" and "type_consents" (and their corresponding dates) are sent as an…
Leitouran
  • 578
  • 3
  • 16
4
votes
1 answer

What's the best practice for error handling with Catalyst::Controller::REST

I'm having a hard time trying to figure out a way to handle unexpected errors in my Catalyst::Controller::REST based API. BEGIN { extends 'Catalyst::Controller::REST' } __PACKAGE__->config( json_options => { relaxed => 1, allow_nonref => 1 }, …
ojosilva
  • 1,984
  • 2
  • 15
  • 21
4
votes
1 answer

How do I use multiple Template Toolkit TTSite views on a Catalyst site?

I use Template Toolkit to generate views of pages in Catalyst. To do some basic Ajax, I want to have some output pages not use the TTSite style, but a much more basic structure. Do I put something special into the stash to use a .tt2 file without…
Thelema
  • 14,257
  • 6
  • 27
  • 35
4
votes
2 answers

How do you change globally the default content type in Catalyst?

I've tried with: MyApp/lib/MyApp.pm __PACKAGE__->config( ..., content_type => 'application/xhtml+xml' ); and even with: MyApp/lib/MyApp/View/HTML.pm __PACKAGE__->config( ..., content_type => 'application/xhtml+xml', );
asarch
  • 41
  • 2