HTML_QuickForm_Controller: How do controller, page, form and action relate to eachother?

From: Date: Tue, 06 Sep 2005 21:36:37 +0000
Subject: HTML_QuickForm_Controller: How do controller, page, form and action relate to eachother?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20853@lists.php.net to get a copy of this message
I'm trying to relate the different concepts in QF and QFC to eachother and how that fits in the rest of my php/pear world. I guess you usually define one controller object for one .php file you develop? E.g. if I want to deal with all customer order related information in an application, I create one order_management.php file where I use a controller to search for a specific order, to display the order header information, to display a grid with the order lines and add buttons to add and delete orders. A form is something you link an action to, and I guess that relates to a <form> </form> in HTML? And one QuickForm object is just that; everything that goes into that form. Now how does a Form relate to a Page (as in the class HTML_QuickForm_Page); can we have multiple forms in one page? The documentation and the class methods look like you can only add one form per page? I would imagine a page is a collection of forms. For example, if I want to list multiple order lines for one order on a page, and each order line is a form with a 'edit' and 'delete' action, how do I get these forms grouped together?

« previous php.pear.general (#20853) next »