Jonathan Rockway's Catalyst: Accelerating Perl Web Application Development PDF

By Jonathan Rockway

ISBN-10: 1847190952

ISBN-13: 9781847190956

Layout, improve, attempt, and installation functions with the open-source MVC Catalyst framework. This e-book is for net builders with easy Perl talents who're new to Catalyst. when you are desirous about Ruby on Rails yet would favor the good points of Rails with the familiarity of Perl, decide this booklet and start.

Show description

Read Online or Download Catalyst: Accelerating Perl Web Application Development PDF

Best web design books

Matthew Miller's Facebook Companion PDF

Adventure every little thing you are able to do on FacebookFacebook has taken the realm by way of hurricane and simply breached the five hundred million-user mark as its attractiveness maintains to extend each day across the world. but, regardless of its acceptance, many of us should not conscious of all that fb has to provide. this convenient, approachable advisor stocks indispensible advice and shortcuts on every little thing from sharing video clips to enjoying renowned video games like FarmVille and CityVille.

Get Cut the cord! : the consumer's guide to VoIP PDF

Phones have actually turn into an essential component of our day-by-day lives, serving as our verbal exchange lifeline to the realm. besides the fact that, there were only a few advances within the easy expertise of cellphone carrier - formerly. Voice over net Protocol (VoIP) deals shoppers a cheap substitute to conventional cellphone provider.

Michael Papazoglou's Web services : principles and technology PDF

The recent version of this bestselling publication deals a complete and recent therapy of net providers and repair orientated structure (SOA), providing you with all you want to be aware of to realize a high-quality beginning during this region.

Download PDF by Sun Ruoyu: Designing for XOOPS: A Designer's Quickstart Guide to

Find out how to customise web content with XOOPS, the open resource CMS that is helping non-developers construct dynamic group web content, intranets, and different purposes. This concise e-book indicates you the way to take advantage of XOOPS issues and modules to layout every thing from easy blogs to massive database-driven CMS portals. internet designers and present XOOPS clients will create a website subject with CSS and jQuery libraries, together with concepts for making extra modules agree to the site's appear and feel.

Additional resources for Catalyst: Accelerating Perl Web Application Development

Sample text

If there's no person in the database matching that ID, we set an error message instead. Regardless of the outcome, we forward back to the list page we came from. There, the new data will show up, with an appropriate message at the top of the screen. This makes it very easy for the user to be sure that his action took effect—there's a message saying that it did and the user can look at the list of people and confirm that the person deleted is gone—and it makes it easy to perform another operation, as he doesn't have to navigate anywhere.

If we can't find one, we return the user to the list page with an error message. At this point, we have an address object (existing or newly-created) that we can use to populate the form. The rest of the action looks just like the one for adding or editing a person, except we have a few more fields this time. The address delete action also works exactly like the person deletion action, except we delete an address object instead of a person object. Since we already added code to list addresses to the /person/list template, we can restart the server, browse to that page (http://localhost:3000/person/list) and try adding some addresses.

To see this in action, start up the server, add some new people and addresses to the database (via the sqlite3 utility) and watch them appear on the page at http://localhost:3000/person/list. [ 42 ] Chapter 3 Basic CRUD Let's start by writing the easiest method, a method to delete a person from the database. All we need is a simple action in the Person controller: sub delete : Local { my ($self, $c, $id) = @_; my $person : Stashed = $c->model('AddressDB::People')-> find({id => $id}); if($person){ $c->stash->{message} = 'Deleted '.

Download PDF sample

Catalyst: Accelerating Perl Web Application Development by Jonathan Rockway


by Steven
4.3

Rated 4.34 of 5 – based on 20 votes