Skip to content

Commit

Permalink
- don't use $GLOBALS trick for replacing the default renderer,
Browse files Browse the repository at this point in the history
  use $form->accept($renderer);


git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm_DHTMLRulesTableless/trunk@216229 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Mark Wiesemann committed Jul 12, 2006
1 parent 64e65dc commit f223d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ require_once 'HTML/QuickForm/Renderer/Tableless.php';
$form =& new HTML_QuickForm_DHTMLRulesTableless(...);
// you can use $form the same way as when instantiating HTML_QuickForm
$renderer =& new HTML_QuickForm_Renderer_Tableless();
$GLOBALS['_HTML_QuickForm_default_renderer'] =& $renderer;

// usual code, e.g. new form fields, rules, ...

echo $form->display();</description>
$form->accept($renderer);
echo $renderer->toHtml();</description>
<lead>
<name>Mark Wiesemann</name>
<user>wiesemann</user>
Expand Down

0 comments on commit f223d90

Please sign in to comment.