PEAR Manual
Prev |  | Next

# HTML_QuickForm_Renderer_Default::setFormTemplate()

HTML_QuickForm_Renderer_Default::setFormTemplate() -- Sets form template

## Synopsis

    require_once 'HTML/QuickForm/Renderer/Default.php';

``void HTML_QuickForm_Renderer_Default::setFormTemplate` (string $html)`

## Description

Sets form template. The template should include `{attributes}` and `{content}` placeholders.

The default form template is

    "\n<form{attributes}>\n<table border=\"0\">\n{content}\n</table>\n</form>"

## Parameter

string `$html`

  The HTML surrounding the form tags

## Throws

throws no exceptions thrown

## Note

This function can not be called statically.

Prev | Home | Next
HTML_QuickForm_Renderer_Default::setElementTemplate() | Up | HTML_QuickForm_Renderer_Default::setGroupElementTemplate()