More error problems with QuickForm
| From: | Jon Wood | Date: | Sun, 04 May 2003 14:08:07 +0000 |
| Subject: | More error problems with QuickForm | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-15827@lists.php.net to get a copy of this message | ||
Ok, I've got the list of errors working now, but I'm trying to just mark
fields with errors in the main form by putting a symbol next to them,
instead of the full error text (since that's already at the top).
The problem is that to make that work I have to change
if ($this->_tpl->blockExists($blockName . '_error')) {
$this->_tpl->setVariable('qf_error', $error);
}
to
if ($this->_tpl->blockExists($blockName . '_error')) {
$this->_tpl->touchBlock($blockName.'_error', $error);
}
for it not to use the qf_error block from the error listing as the text
of the field errors.
My thought is that to get both working without users having to play with
the renderer too much, is to change the {qf_error} variable in the error
loop to something different ({qf_error_item}, something else?) so that
it doesn't get used further down.
--
Jon Wood
jon@jellybob.co.uk
www.godaintpants.co.uk/users/Jellybob
"Experience is something you don't get until just after you need it."