PUBLISHED: The CVT forms of SPIP~2.0

Article published
-----------------

The article "The CVT forms of SPIP~2.0" was validated by Committo, Ergo
Sum..

** The CVT forms of SPIP~2.0 **
by Paolo on Wednesday 14 January 2009

With Array it is much easier to create dynamic forms. This is thanks to a
clear method dividing the working of a form into a view (template) and
three distinct steps: Charging (loading), Verifying, and Treating.

One view plus 3 steps Take the example of a contact form that we wish to
insert using the tag #FORMULAIRE_CONTACT.

Display

When SPIP sees the tag #FORMULAIRE_CONTACT, it recognises it as a tag of
the type #FORMULAIRE_xxx. So it looks for the template
formulaires/contact.html in order to display the form.

Nothing else is required for the form to be displayed. This means that the
styling and visual integration on the page can be carried out entirely
independently of the 3 steps (...)

-> http://www.spip.net/en_article3980.html