O'Reilly logo

Catalyst 5.8 by Antano Solar John

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we created a full CRUD application. We started by creating a database schema inside of SQLite. Then, we created a Catalyst model for accessing this database. As SQLite doesn't handle foreign key relations by itself, we added information about the relations between tables directly to the DBIC schema files. Once that was set up, we customized the TTSite View and created a page that listed all people and addresses in the database. Then, we created a Controller to edit, add, and delete people. The edit and add actions were simple forms, so we used Catalyst::Controller::FormBuilder to generate and validate the forms automatically. After this Controller was built, we created a similar one to add, edit, and update addresses, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required