Implementing Multi Page Add/Update/Delete/View Screens

intro
This article illustrates how to use the multi page add/update/delete/view action controller created in the previous article. You can download the source code from here.
You can see the screens from the demonstration site.

1.Create bootstrap.php and config.ini
Create the file application/bootstrap.php with the following content.
Please modify yourBaseUrl properly.

Create the file application/config.ini with the following content.
Please modify database.params.* properly.

In this article, we will use the following sql.
2.Create Models
Create the file application/models/Users.php with the following content.

Create the file application/models/forms/UserForm.php with the following content.

Create the file application/models/Profiles.php with the following content.

Create the file application/models/forms/ProfileForm.php with the following content.
3.Create Controller
Create the file application/constorllers/UserController.php with the following content.
This class extends My_Controller_MultiPage created in the previous article.
4.Create Views
Create the file application/views/scripts/computer/list.phtml with the following content.

Create the file application/views/scripts/computer/detail.phtml with the following content.

Create the file application/views/scripts/computer/form.phtml with the following content.

Create the file application/views/scripts/computer/finish.phtml with the following content.

5.Check
Access the web server and check multi page add/update/delete/view screens.
History
Date Content
2008/4/21 Published
2008/4/26 Views were modified to use URL helper.

Leave a Reply

Your email address will not be published.