サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
デスク環境を整える
catalyst.perl.org
Advanced Search in web DBIx::Class based applications (with tags, full text search and searching by location) There is a bit of irony that I write that article, for people to learn from it, while in fact it is my failing to properly wrap my head around the problem and encapsulate my solution into a CPAN library that forces me to write an article in the first place. But maybe someone smarter then m
Today we will take a trip into the wonderful and mystical world of uri_for. The basic premise behind uri_for is to make generating URIs for actions with parameters easy and fun (well as fun as URIs get). $c->uri_for will return the URL for the current actions namespace, so, if you are in Controller MyApp::Children it will return: $c->uri_for() http://localhost:3000/children for any action you are
Open Flash Chart is a flash application that produces some very nice-looking, interactive (and in some cases animated) charts and graphs for your web application. It's also completely free and open source, released under the GNU General Public License. For examples of the kinds of graphs you can produce, visit the home page at http://teethgrinder.co.uk/open-flash-chart/. This tutorial assumes you
Articles Day 1: Day 1 - Getting started with ExtJS screen library Day 2: Get more REST - Using YUI and JavaScript for REST Day 3: Application Design Techniques Day 4: Catalyst + Open Flash Chart: Fancy graphs with minimal fuss Day 5: Adding Authentication to your Catalyst App Day 6: Inline Authentication Without Redirection Day 7: Day 7 - Rapid CRUD with Catalyst Day 8: local::lib and Catalyst Day
Catalyst Advent - Day 24 - Authorization NOTE: This article is now obsolete. Please refer to http://dev.catalyst.perl.org/wiki/gettingstarted/howtos/interim_authorization_and_authentication_example. Introduction Authorization is the step that comes after authentication. Authentication establishes that the user agent is really representing the user we think it's representing, and then authorization
Catalyst Advent - Day 23 - Static::Simple Introduction Static::Simple is a plugin that will help to serve static content for your application. By default, it will serve most types of files, excluding some standard Template Toolkit extensions, out of your root file directory. All files are served by path, so if images/me.jpg is requested, then root/images/me.jpg is found and served. Usage Using the
Catalyst Advent - Day 22 - Action Types Introduction A Catalyst application is driven by one or more Controller modules. There are a number of ways that Catalyst can decide which of the methods in your controller modules it should call. Controller methods are also called actions, because they determine how your catalyst application should (re-)act to any given URL. When the application is started
Catalyst provides a convenient way of testing your application during development and before deployment in a real environment. Catalyst::Test makes it possible to run the same tests both locally (without an external daemon) and against a remote server via HTTP. Let's examine a skeleton application's t/ directory: mundus:~/MyApp chansen$ ls -l t/ total 24 -rw-r--r-- 1 chansen chansen 95 18 Dec 20:5
NOTE: This article was written in 2005. For more up-to-date information on deplyoment, please see http://dev.catalyst.perl.org/wiki/deployment As a companion to Day 7's mod_perl article, today's article is about production FastCGI deployment. [Content migrated to Deployment in Catalyst::Manual::Cookbook]
Adding RSS feeds to your stuff in Catalyst is really simple. I'll show two different aproaches here, but the basic premise is that you forward to the normal view action first to get the objects, then handle the output differently This is the aproach we chose in Agave (http://dev.rawmode.org/). sub rss : Local { my ($self,$c) = @_; $c->forward('view'); $c->stash->{template}='rss.tt'; } Then you nee
When you have your users identified, you will want to somehow remember that fact, to save them from having to identify themselves for every single page. One way to do this is to send the username and password parameters in every single page, but that's ugly, and won't work for static pages. Sessions are a method of saving data related to some transaction, and giving the whole collection a single I
NOTE: This article was written in 2005. Make sure to check the Catalyst Wiki (http://dev.catalyst.perl.org/wiki) for updated information. This text will show you how to start using DBIx::Class as your model within Catalyst. Let's assume, we have a relational set of tables: shell> sqlite3 myapp.db SQLite version 3.2.1 Enter ".help" for instructions sqlite> CREATE TABLE person ( ...> id INTEGER PRIM
NOTE: This article was written in 2005. Make sure to check the Catalyst Wiki (http://dev.catalyst.perl.org/wiki) for updated information. This is actually one of the features we brought over from Maypole. There it was called Maypole::Plugin::Component. Basically, the idea is to set up new request/response objects, and do an internal request, then return the output. It's quite handy for various sit
NOTE: This article was written in 2005. Make sure to check the Catalyst Wiki (http://dev.catalyst.perl.org/wiki) for updated information. Catalyst makes it easy to employ several different types of caching to speed up your applications. There are three wrapper plugins around common CPAN cache modules: Cache::FastMmap, Cache::FileCache, and Cache::Memcached. These can be used to cache the result of
NOTE: This article was written in 2005. Make sure to check the Catalyst Wiki (http://dev.catalyst.perl.org/wiki) for updated information. So, you want to put your Catalyst app out there for the whole world to see, but you don't want to break the bank. There is an answer - if you can get shared hosting with FastCGI and a shell, you can install your Catalyst app. First, run perl -MCPAN -e shell and
NOTE: This article was written in 2005. In the meantime, Catalyst has switched to using Config::General as the format for its configuration files. YAML files being whitespace-sensitive, copy/pasting from POD often caused problems. See also the Catalyst Wiki (http://dev.catalyst.perl.org/wiki). When you start a new Catalyst app you configure it directly with __PACKAGE__->config, thats ok for develo
NOTE: This article is now obsolete. Please refer to http://dev.catalyst.perl.org/wiki/gettingstarted/howtos/interim_authorization_and_authentication_example. This is done in several steps: Verification Getting the user to identify themselves, by giving you some piece of information known only to you and the user. Then you can assume that the user is who they say they are. This is called credential
DRY is a central principle in Catalyst, yet there is one piece of code that is identical in 90% of all Catalyst applications. sub end : Private { my ($self,$c) = @_; return 1 if $c->res->body; return 1 if $c->response->status =~ /^3\d\d$/; $c->forward( 'MyApp::View::TT' ); } Basically, we want to render a template unless we already have a response, or are redirecting. So, rather than doing this ag
NOTE: This article was written in 2005. For more up-to-date information on deplyoment, please see http://dev.catalyst.perl.org/wiki/deployment In today's entry, I'll be talking about deploying an application in production using Apache and mod_perl. mod_perl is the best solution for many applications, but I'll list some pros and cons so you can decide for yourself. The other production deployment o
NOTE: This article was written in 2005. For more up-to-date information on deplyoment, please see http://dev.catalyst.perl.org/wiki/deployment You know the problem, you got a application perfectly running on your development box, but then *shudder* you have to quickly move it to another one for demonstration/deployment/testing... PAR packages can save you from a lot of trouble here. They are usual
255 days until the calendar starts! In the mean time, you might want to check our archives. 2005 - 2006 - 2007 - 2008 - 2009 - 2010 - 2011 - 2012 - 2013 - 2014
Turbocharge your web development! Catalyst is the most popular Perl MVC framework and makes creating web applications fun, rewarding and quick. What is Catalyst? Catalyst is an open-source Perl MVC web framework that encourages rapid development and clean design without getting in your way by forcing rules. We tend to keep things small and simple. This gives us robustness and scalability - your Ca
このページを最初にブックマークしてみませんか?
『Catalyst - Web Framework』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く