HTML_QuickForm_Renderer_Default

HTML_QuickForm_Renderer_Default – Default renderer

Описание

This renderer directly generates and outputs form HTML. It is based on pre-3.0 built-in form output logic.

The renderer has built-in templates for elements, their format is similar to that of HTML_Template_Sigma or HTML_Template_IT (but only placeholders and blocks are supported). When renderer's renderSomething() method is called, it finds the template for the element, makes necessary substitutions and appends the result to the form's HTML.

Usage example

It is recommended to use the Default renderer when you are not using any template engine in your application or do not need to do any customization to form output. It is the fastest way to output a form.

Default renderer usage

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

$renderer =& new HTML_QuickForm_Renderer_Default();
$form->accept($renderer);

echo 
$renderer->toHtml();
?>

HTML_QuickForm::toHtml() method uses the Default renderer internally.

    Поддержать сайт на родительском проекте КГБ