catalyst Questions
2
Solved
I can usually get the behavior I desire by just randomly trying different permutations of these two options, but I still can't say I know precisely what they do. Is there a concrete example that de...
5
Solved
I'm not quite sure that this is on-topic (if it isn't, I'll delete it ASAP =)).
I've decided to start teaching myself Perl and how to use it for web development.
I've done the same about a year a...
3
Solved
What is the difference between $c->uri_for and $c->uri_for_action methods of Catalyst.
Which one to use? And why?
3
I'm expecting to receive uri's like
/user/*/account/*
I've got a user function defined as
sub user :Path('/user') :PathPart('') :ActionClass('REST' ) {}
then
sub user_GET :PathPart('user'...
1
For any given result class MySchema::Result::Foo (built from default schema loader generated
syntax which uses Moose/MooseX::nonmoose)
If I add a BUILDARGS method wrapper to sanitize the construc...
Flinger asked 7/12, 2010 at 14:28
5
Say I'm working in Perl using Catalyst. I assign an array of hashes to a a variable, ie:
my @array = ($some_hash);
$c->stash->{foo}->{bar} = \@array;
How do I select an element from $...
Instrumentation asked 10/11, 2011 at 23:25
2
In the application I am building, users can specify relationships between tables.
Since I only determine this at runtime, I can't specify has_many or belongs_to relationships in the schema module...
Formate asked 13/2, 2010 at 1:28
2
Solved
I'm a bit of a Catalyst newbie, and I'm trying to get multiple chains to access the same endpoint ('description' subroutine) e.g:
/object/fetch_by_id/*/description
/object/fetch_by_name/*/descript...
3
Solved
What is the best way to deal with exceptions threw in a method chaining in Perl?
I want to assign a value of 0 or undef if any of the methods chained throw an exception
Code sample:
my $x = $obj-...
Activist asked 15/8, 2011 at 12:36
5
Is it feasible to learn Perl and Catalyst at the same time? If so, what would be the typical path?
I am experienced .Net/C#/C++ developer but fairly new to Perl
3
Solved
I was thinking that I don't really understand why just about everything in catalyst uses the context object. Seems that just about everything starts with
my ( $self, $c ) = @_;
we wrap DBIC with...
1
Solved
Okay, this is a hard one. I have a Catalyst server I can access just fine from Firefox 4, Chromium 12, and IE 8 and 9 on other computers. When I try to access it from IE9 on my own machine (the sam...
Reach asked 11/5, 2011 at 21:55
3
Solved
What do you think about both?
I began reading a book about Catalyst, and found it pretty complex as compared to Dancer.
so now I'm giving Dancer a try, and it looks easier to learn and more "...
Tarsia asked 22/2, 2011 at 15:20
2
Solved
After testing my Catalyst application and deciding to deploy it I would like to package it up so I can easily pull it in on the staging and live servers, manage dependencies and easily roll-back vi...
4
Solved
I just took notice to this generated by Catalyst.pl. It is obviously some sort of unannotated hack. What is the advantage of setting up a version string like this? I can't even figure out what they...
4
Solved
Given a DBIx::Class resultset, for example:
my $rs = $c->model("DB::Card")->search({family_name => "Smith"});
the tutorials I've read use the stash to pass an arrayref of rows:
$c->...
Downwash asked 15/1, 2009 at 15:59
1
Solved
In Template Toolkit, if I have the following variable containing a hashref:
[%
artist = {
'life-span' => '1975 to 1987',
}
%]
What is the best way to output the data in 'life-span'?
I ha...
Shaftesbury asked 22/2, 2010 at 14:2
3
Solved
I've written a web application using Catalyst that has a lot of forms and needs to run over https. There are no hard-coded URLs, everything uses $c->uri_for or $c->req->uri. Everything wor...
2
Solved
What is a good way to deploy Catalyst applications to a production server? Currently I simply have a FastCGI dispatch script in the root of the repository and when I want to update the server code,...
3
Solved
I'm writing a web application using the Catalyst framework. I'm also using a Job Queue called TheSchwartz.
I'm wanting to use a job queue because I'm wanting as much of the application specific co...
Calceolaria asked 25/10, 2009 at 22:20
4
Solved
I recently told a friend that I was starting to learn Catalyst (Perl) and he fairly strongly emphasized that because Catalyst has so freakin' many dependencies, I should use something like Ra...
Mucus asked 18/7, 2009 at 0:11
2
Solved
It seems that by default Catalyst does not output Cache-Control:, etc. headers. I know I can output them in a given controller method like this:
$c->response->headers->last_modified(time)...
Hultgren asked 24/7, 2009 at 12:56
1
I've been looking through a couple of Catalyst tutorials and they all tend to use Template Toolkit instead of HTML::Template.
I've spent a lot of time with HTML::Template and I like it, and while ...
Amylo asked 28/4, 2009 at 0:10
5
Solved
I'm writing a Catalyst application that's required to have a fairly short session expiration (15 minutes). I'm using the standard Catalyst framework authentication modules, so the user data is stor...
1
Solved
I am working on an internal web based application for storing and cataloging photos. How should I retrieve, and save these files to the server?
Note: I want to save the files to the file system, n...
Numbles asked 3/12, 2008 at 15:31
© 2022 - 2024 — McMap. All rights reserved.