HTML_QuickForm::defaultRenderer() – Returns a reference to default renderer object


require_once 'HTML/QuickForm.php';

object &HTML_QuickForm::defaultRenderer ( void )


Returns a reference to default renderer object. You can use this method to save a few keystrokes:

=& $form->defaultRenderer();

instead of

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

$renderer =& new HTML_QuickForm_Renderer_Default();

It is also used internally to implement toHtml() and some of the deprecated methods.

Return value

return default renderer object


throws no exceptions thrown


since 3.0

This function can be called statically.

Accepts a renderer (Previous) Returns the form's contents in an array (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.