Re: quick_form but with more control over table structure?

From: Date: Sat, 22 Jan 2005 08:47:25 +0000
Subject: Re: quick_form but with more control over table structure?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17103@lists.php.net to get a copy of this message
Hi, Ray Still wrote:
Thanks to help received from the list, I've found out what templates are. I think that what I want to do is just turn off templates in the renderer. The code I've found in the manuals says that I have to: require_once "HTML/QuickForm/Renderer/Default.php"; and then, later on: HTML_QuickForm_Renderer_Default::clearAllTemplates();
The docs [1] say: "Note: This function can not be called statically." You should create an instance of the renderer and then work with that.
(return value is void, as is the parameter list, by definition) this gives the following error: PHP Fatal error: Using $this when not in object context in C:\php\PEAR\PEAR\HTML\QuickForm\Renderer\Default.php on line 465
[1] http://pear.php.net/manual/en/package.html.html-quickform.html-quickform-renderer-default.clearalltemplates.php

« previous php.pear.general (#17103) next »