static class to manage and call a form
A form is identified by a selector, and each instance of a form have a unique id (formId). This id can be the id of a record for example. If it is not given, the id is set to 0.
Located in /forms/jForms.class.php (line 25)
Create a new form with empty data
Call it to create a new form, before to display it. Data of the form are stored in the php session in a jFormsDataContainer object. If a form with same id exists, data are erased.
destroy a form in the session
use it after saving data of a form, and if you don't want to re-display the form.
get an existing instance of a form, and fill it with data provided by the request
use it in the action called to submit a webform.
get an existing instance of a form
In your controller, call it before to re-display a form with existing data.
Documentation generated on Wed, 07 Sep 2011 13:47:20 +0200 by phpDocumentor 1.4.3