Using Multi Page Form that extends Zend_Form

intro
This article shows how to use the multi page form created in the previous article. You can download the source code of this article from here.

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/Profiles.php with the following content.
3.Create Controller
Create the file application/constorllers/ComputerController.php with the following content.
4.Create View
Create the file application/views/scripts/computer/list.phtml with the following content.

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

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

Create the file application/views/scripts/computer/confirm.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 the screen flow.
History
Date Content
2008/4/19 Published
2008/4/26 The controller was modified for modification of My_Form_MultiPage.
Views were modified to use URL helper.

2 Comments

  1. I am having these errors when I run you sample:

    Strict Standards: Declaration of Mylib_Form_MultiPage::setDefaults() should be compatible with that of Zend_Form::setDefaults() in C:\Inetpub\wwwroot\library\Mylib\Form\MultiPage.php on line 202

    Strict Standards: Declaration of Mylib_Controller_MultiPage::_executeFind() should be compatible with that of Mylib_Controller_Simple::_executeFind() in C:\Inetpub\wwwroot\library\Mylib\Controller\MultiPage.php on line 6

    Notice: Undefined index: Profiles in C:\Inetpub\wwwroot\library\Mylib\Form\MultiPage.php on line 37

    I just want this same functionality on the demo page. Maybe I downloaded the wrong codes.

    Any assistance would be appreciated.

    Thanks

  2. I’m sorry, but I created the program with the following php configuration.
    error_reporting = E_ALL & ~E_NOTICE

    If you can change your php.ini, please change it.

Leave a Reply

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