Implementing Add/Update/Delete/View Screens

intro
This article illustrates how to use the 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/Computers.php with the following content.

Create the file application/models/forms/ComputerForm.php with the following content.
3.Create Controller
Create the file application/constorllers/ComputerController.php with the following content.
This class extends My_Controller_Simple 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 add/update/delete/view screens.
History
Date Content
2008/4/26 Views were modified to use URL helper.

Leave a Reply

Your email address will not be published. Required fields are marked *