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

Finishing up

The final feature we need to add to our address book is an address editing Controller, with methods for adding, editing, and deleting addresses. Even though the address data is more complicated than the simple firstname/lastname records that we were working with before, the code is almost exactly the same.

Let's start by creating a template for the address editing form in root/src/address/edit.tt2:

[% META title = "Address" %]
<p>Here's some text explaining the form below. Only the "location" field is required, etc., etc.</p>
[%FormBuilder.render%]

This looks just like the name editing form. In a real application, you will want to add some text explaining the form so that your users know what constraints are placed on the data. As ...

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